Fix the intial db migration

The table should be stories - not storyboard.

Yes. I know - technically this should be a new migration - but we haven't
started running yet.

Change-Id: Ifc39545b32850a87c3ebfdb8788e68c6afdb80f6
This commit is contained in:
Monty Taylor 2014-01-17 10:14:07 -08:00 committed by Nikita Konovalov
parent 20ad3eac30
commit 2b2ee5fba9

View File

@ -117,7 +117,7 @@ def upgrade(active_plugins=None, options=None):
sa.PrimaryKeyConstraint()
)
op.create_table(
'storyboard',
'stories',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('created_at', sa.DateTime(), nullable=True),
sa.Column('updated_at', sa.DateTime(), nullable=True),
@ -181,7 +181,7 @@ def upgrade(active_plugins=None, options=None):
sa.ForeignKeyConstraint(['assignee_id'], ['users.id'], ),
sa.ForeignKeyConstraint(['milestone_id'], ['milestones.id'], ),
sa.ForeignKeyConstraint(['project_id'], ['projects.id'], ),
sa.ForeignKeyConstraint(['story_id'], ['storyboard.id'], ),
sa.ForeignKeyConstraint(['story_id'], ['stories.id'], ),
sa.PrimaryKeyConstraint('id')
)
op.create_table(
@ -195,7 +195,7 @@ def upgrade(active_plugins=None, options=None):
sa.Column('story_id', sa.Integer(), nullable=True),
sa.Column('author_id', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['author_id'], ['users.id'], ),
sa.ForeignKeyConstraint(['story_id'], ['storyboard.id'], ),
sa.ForeignKeyConstraint(['story_id'], ['stories.id'], ),
sa.PrimaryKeyConstraint('id')
)
op.create_table(
@ -205,7 +205,7 @@ def upgrade(active_plugins=None, options=None):
sa.Column('updated_at', sa.DateTime(), nullable=True),
sa.Column('name', sa.String(length=20), nullable=True),
sa.Column('story_id', sa.Integer(), nullable=True),
sa.ForeignKeyConstraint(['story_id'], ['storyboard.id'], ),
sa.ForeignKeyConstraint(['story_id'], ['stories.id'], ),
sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('name', name='uniq_story_tags_name')
)
@ -218,7 +218,7 @@ def downgrade(active_plugins=None, options=None):
op.drop_table('project_groups')
op.drop_table('projects')
op.drop_table('milestones')
op.drop_table('storyboard')
op.drop_table('stories')
op.drop_table('team_membership')
op.drop_table('teams')
op.drop_table('users')