mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
set prov details history's primary key to be id+version
This commit is contained in:
@@ -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('notification_type', postgresql.ENUM('email', 'sms', 'letter', name='notification_type', create_type=False), nullable=False),
|
||||||
sa.Column('active', sa.Boolean(), nullable=False),
|
sa.Column('active', sa.Boolean(), nullable=False),
|
||||||
sa.Column('version', sa.Integer(), nullable=False),
|
sa.Column('version', sa.Integer(), nullable=False),
|
||||||
sa.PrimaryKeyConstraint('id')
|
sa.PrimaryKeyConstraint('id', 'version')
|
||||||
)
|
)
|
||||||
op.execute(
|
op.execute(
|
||||||
'INSERT INTO provider_details_history' +
|
'INSERT INTO provider_details_history' +
|
||||||
|
|||||||
Reference in New Issue
Block a user