This commit is contained in:
Joseph Schorr 2014-09-23 14:45:30 -04:00
commit 26fab5d6ba

View file

@ -17,8 +17,8 @@ from data.database import Repository, User
def upgrade(tables):
# Add the namespace_user column, allowing it to be nullable
op.add_column('repository', sa.Column('namespace_user', sa.Integer(), sa.ForeignKey('user.id')))
op.add_column('repository', sa.Column('namespace_user_id', sa.Integer(), sa.ForeignKey('user.id')))
def downgrade(tables):
op.drop_column('repository', 'namespace_user')
op.drop_column('repository', 'namespace_user_id')