From ceb139ca2836467fa5272dc8856d3d9976662c02 Mon Sep 17 00:00:00 2001 From: Rebecca Law Date: Fri, 13 Jan 2017 12:29:13 +0000 Subject: [PATCH] Fix foreign key names --- migrations/versions/0063_templates_process_type.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/versions/0063_templates_process_type.py b/migrations/versions/0063_templates_process_type.py index ae4b7ca36..27c14bb68 100644 --- a/migrations/versions/0063_templates_process_type.py +++ b/migrations/versions/0063_templates_process_type.py @@ -22,10 +22,10 @@ def upgrade(): op.execute("INSERT INTO template_process_type VALUES ('normal'), ('priority')") op.add_column('templates', sa.Column('process_type', sa.String(length=255), nullable=True)) op.create_index(op.f('ix_templates_process_type'), 'templates', ['process_type'], unique=False) - op.create_foreign_key('templates_history_process_type_fkey', 'templates', 'template_process_type', ['process_type'], ['name']) + op.create_foreign_key('templates_process_type_fkey', 'templates', 'template_process_type', ['process_type'], ['name']) op.add_column('templates_history', sa.Column('process_type', sa.String(length=255), nullable=True)) op.create_index(op.f('ix_templates_history_process_type'), 'templates_history', ['process_type'], unique=False) - op.create_foreign_key('templates_process_type_fkey', 'templates_history', 'template_process_type', ['process_type'], ['name']) + op.create_foreign_key('templates_history_process_type_fkey', 'templates_history', 'template_process_type', ['process_type'], ['name']) def downgrade():