diff --git a/data/migrations/versions/13da56878560_migrate_registry_namespaces_to_.py b/data/migrations/versions/13da56878560_migrate_registry_namespaces_to_.py index 8d2810af7..30ac75c96 100644 --- a/data/migrations/versions/13da56878560_migrate_registry_namespaces_to_.py +++ b/data/migrations/versions/13da56878560_migrate_registry_namespaces_to_.py @@ -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')