set prov details history's primary key to be id+version

This commit is contained in:
Leo Hemsted
2016-12-19 17:33:51 +00:00
parent 9f88c310dc
commit 74cdcdcc92

View File

@@ -32,7 +32,7 @@ def upgrade():
sa.Column('notification_type', postgresql.ENUM('email', 'sms', 'letter', name='notification_type', create_type=False), nullable=False),
sa.Column('active', sa.Boolean(), nullable=False),
sa.Column('version', sa.Integer(), nullable=False),
sa.PrimaryKeyConstraint('id')
sa.PrimaryKeyConstraint('id', 'version')
)
op.execute(
'INSERT INTO provider_details_history' +