From 5cb6ba4d12e2a8d5c8cafc9c186ccae92543df6a Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Mon, 18 Apr 2016 17:43:28 -0400 Subject: [PATCH] keyserver migration: fix constraint name --- data/migrations/versions/a3ba52d02dec_initial_keyserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/migrations/versions/a3ba52d02dec_initial_keyserver.py b/data/migrations/versions/a3ba52d02dec_initial_keyserver.py index 4e49b03cf..2f2074db2 100644 --- a/data/migrations/versions/a3ba52d02dec_initial_keyserver.py +++ b/data/migrations/versions/a3ba52d02dec_initial_keyserver.py @@ -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'])