Skip to content

Commit

Permalink
fixing migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
tom0827 committed Aug 22, 2024
1 parent 4181745 commit 26b5e38
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions epictrack-api/migrations/versions/19227722dffc_set_up_idir.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def upgrade():
# Adding the new column to the 'staffs' table
with op.batch_alter_table("staffs", schema=None) as batch_op:
batch_op.add_column(sa.Column("idir_user_id", sa.String(length=100)))
batch_op.create_unique_constraint("uq_staffs_idir_user_id", ["idir_user_id"])

with op.batch_alter_table("staffs_history", schema=None) as batch_op:
batch_op.add_column(sa.Column("idir_user_id", sa.String(length=100)))
Expand Down Expand Up @@ -56,6 +55,5 @@ def downgrade():
batch_op.drop_column("idir_user_id")

with op.batch_alter_table("staffs", schema=None) as batch_op:
batch_op.drop_constraint("uq_staffs_idir_user_id", type_="unique")
batch_op.drop_column("idir_user_id")
# ### end Alembic commands ###

0 comments on commit 26b5e38

Please sign in to comment.