mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -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('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' +
|
||||
|
||||
Reference in New Issue
Block a user