Skip to content

Commit 3ea6497

Browse files
committed
Added constraint name
1 parent d0bf351 commit 3ea6497

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

opentakserver/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These version placeholders will be replaced later during substitution.
2-
__version__ = "1.7.5"
3-
__version_tuple__ = (1, 7, 5)
2+
__version__ = "1.7.6"
3+
__version_tuple__ = (1, 7, 6)

opentakserver/migrations/versions/61c7cfea0c86_added_eud_uid_to_device_profiles_table_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ def upgrade():
2121
# ### commands auto generated by Alembic - please adjust! ###
2222
with op.batch_alter_table("device_profiles", schema=None) as batch_op:
2323
batch_op.add_column(sa.Column("eud_uid", sa.String(length=255), nullable=True))
24-
batch_op.create_foreign_key(None, "euds", ["eud_uid"], ["uid"], ondelete="CASCADE")
24+
batch_op.create_foreign_key("eud_uid", "euds", ["eud_uid"], ["uid"], ondelete="CASCADE")
2525

2626
# ### end Alembic commands ###
2727

2828

2929
def downgrade():
3030
# ### commands auto generated by Alembic - please adjust! ###
3131
with op.batch_alter_table("device_profiles", schema=None) as batch_op:
32-
batch_op.drop_constraint(None, type_="foreignkey")
32+
batch_op.drop_constraint("eud_uid", type_="foreignkey")
3333
batch_op.drop_column("eud_uid")
3434

3535
# ### end Alembic commands ###

opentakserver/migrations/versions/f2adbb61ff2f_added_type_field_to_missioninvitation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ def upgrade():
2828
def downgrade():
2929
# ### commands auto generated by Alembic - please adjust! ###
3030
with op.batch_alter_table("mission_invitations", schema=None) as batch_op:
31-
batch_op.create_foreign_key(batch_op.f("mission_invitation_eud"), "euds", ["client_uid"], ["uid"])
31+
batch_op.create_foreign_key(
32+
batch_op.f("mission_invitation_eud"), "euds", ["client_uid"], ["uid"]
33+
)
3234
batch_op.drop_column("type")
3335

3436
# ### end Alembic commands ###

0 commit comments

Comments
 (0)