From 8f9e9d4766dfb03a19eb5f4a1ccb8d0be39bca8f Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Mon, 24 Jun 2024 13:37:10 -0400 Subject: [PATCH] fix downgrade script issue referenced in #156 --- .../alembic/versions/48f4acc43a7e_card_add_idm_chip_id.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/data/alembic/versions/48f4acc43a7e_card_add_idm_chip_id.py b/core/data/alembic/versions/48f4acc43a7e_card_add_idm_chip_id.py index 12fca3a..98872e8 100644 --- a/core/data/alembic/versions/48f4acc43a7e_card_add_idm_chip_id.py +++ b/core/data/alembic/versions/48f4acc43a7e_card_add_idm_chip_id.py @@ -35,9 +35,9 @@ def upgrade(): def downgrade(): # ### commands auto generated by Alembic - please adjust! ### - op.drop_constraint(None, 'aime_card', type_='unique') - op.drop_constraint(None, 'aime_card', type_='unique') - op.drop_constraint(None, 'aime_card', type_='unique') + op.drop_constraint("chip_id", 'aime_card', type_='unique') + op.drop_constraint("idm", 'aime_card', type_='unique') + op.drop_constraint("access_code", 'aime_card', type_='unique') op.alter_column('aime_card', 'created_date', existing_type=mysql.TIMESTAMP(), server_default=sa.text('CURRENT_TIMESTAMP'),