Skip to content

Commit

Permalink
missed a reuse of an existing foreign key constraint during development.
Browse files Browse the repository at this point in the history
  • Loading branch information
pbugni committed Oct 9, 2024
1 parent 2e187c3 commit 1328a09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal/migrations/versions/5a300be640fb_.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint('adherence_data_patient_id_fkey', 'adherence_data')
op.create_foreign_key(
'adherence_data_patient_id_fkey',
'adherence_data',
Expand Down Expand Up @@ -48,5 +49,4 @@ def downgrade():
op.alter_column('patient_list', 'last_updated',
existing_type=postgresql.TIMESTAMP(),
nullable=False)
op.drop_constraint('adherence_data_patient_id_fkey', 'adherence_data', type_='foreignkey')
# ### end Alembic commands ###

0 comments on commit 1328a09

Please sign in to comment.