Fix the migration to use the proper column name that peewee expects.
This commit is contained in:
parent
fa8818e911
commit
798c13aec8
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
|
Reference in a new issue