old_contents: # Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file>
  # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
  # Created By: miha@reciprocitylabs.com
  # Maintained By: miha@reciprocitylabs.com
  
  """fill object types table with workflow models
  
  Revision ID: 4f9f00e4faca
  Revises: 57cc398ad417
  Create Date: 2015-04-03 10:12:50.583661
  
  """
  
  from alembic import op
  import sqlalchemy as sa
  from sqlalchemy.sql import table, column
  
  # revision identifiers, used by Alembic.
  revision = '4f9f00e4faca'
  down_revision = '8e530ce276a'
  
  
  def upgrade():
    object_types_table = table(
        'object_types',
        column('id', sa.Integer),
        column('name', sa.String),
        column('description', sa.Text),
        column('created_at', sa.DateTime),
        column('modified_by_id', sa.Integer),
        column('updated_at', sa.DateTime),
        column('context_id', sa.Integer),
    )
  
    op.bulk_insert(
        object_types_table,
        [
            {"name": "Workflow", "description": ""},
            {"name": "TaskGroup", "description": ""},
            {"name": "TaskGroupTask", "description": ""},
            {"name": "TaskGroupObject", "description": ""},
            {"name": "Cycle", "description": ""},
            {"name": "CycleTaskGroup", "description": ""},
            {"name": "CycleTaskGroupObject", "description": ""},
            {"name": "CycleTaskGroupObjectTask", "description": ""},
        ]
    )
  
  
  def downgrade():
    pass
  
new_contents: # Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file>
  # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
  # Created By: miha@reciprocitylabs.com
  # Maintained By: miha@reciprocitylabs.com
  
  """fill object types table with workflow models
  
  Revision ID: 4f9f00e4faca
  Revises: 57cc398ad417
  Create Date: 2015-04-03 10:12:50.583661
  
  """
  
  # Disable Invalid constant name pylint warning for mandatory Alembic variables.
  # pylint: disable=C0103
  
  # revision identifiers, used by Alembic.
  revision = '4f9f00e4faca'
  down_revision = '8e530ce276a'
  
  
  def upgrade():
    # This migration has been removed due to remove_object_type_table migration.
    # The object_types table has been removed and there should not be any more
    # refferences to that table.
    pass
  
  
  def downgrade():
    pass
  
subject: Fix workflow migrations