keyserver migration: fix constraint name
This commit is contained in:
parent
28a80ef6a9
commit
5cb6ba4d12
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ def upgrade(tables):
|
|||
op.add_column(u'notification', sa.Column('lookup_path', sa.String(length=255), nullable=True))
|
||||
op.create_index('notification_lookup_path', 'notification', ['lookup_path'], unique=False)
|
||||
|
||||
op.drop_constraint(u'fk_logentry_account_id_user', 'logentry', type_='foreignkey')
|
||||
op.drop_constraint(u'fk_logentry_user_account_id', 'logentry', type_='foreignkey')
|
||||
op.alter_column('logentry', 'account_id', existing_type=sa.Integer(), nullable=True)
|
||||
|
||||
|
||||
|
@ -82,4 +82,4 @@ def downgrade(tables):
|
|||
op.drop_table('servicekeyapproval')
|
||||
|
||||
op.alter_column('logentry', 'account_id', existing_type=sa.Integer(), nullable=False)
|
||||
op.create_foreign_key(u'fk_logentry_account_id_user', 'logentry', 'user', ['account_id'], ['id'])
|
||||
op.create_foreign_key(u'fk_logentry_user_account_id', 'logentry', 'user', ['account_id'], ['id'])
|
||||
|
|
Reference in a new issue