From d7103741dc51f7176f4e9f0fa88be62216f5e1f5 Mon Sep 17 00:00:00 2001 From: njouanin Date: Tue, 5 Nov 2024 21:25:58 +0100 Subject: [PATCH] Ajout d'une migration manquante. --- ...e3a780_rename_total_time_extincting_amp.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 backend/alembic/versions/7921b2e3a780_rename_total_time_extincting_amp.py diff --git a/backend/alembic/versions/7921b2e3a780_rename_total_time_extincting_amp.py b/backend/alembic/versions/7921b2e3a780_rename_total_time_extincting_amp.py new file mode 100644 index 00000000..fc1d6484 --- /dev/null +++ b/backend/alembic/versions/7921b2e3a780_rename_total_time_extincting_amp.py @@ -0,0 +1,24 @@ +"""rename_total_time_extincting_amp + +Revision ID: 7921b2e3a780 +Revises: 384baeb90009 +Create Date: 2024-11-01 21:26:02.906937 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = '7921b2e3a780' +down_revision = '384baeb90009' +branch_labels = None +depends_on = None + + +def upgrade() -> None: + op.alter_column("fct_excursion", "total_time_extincting_amp", new_column_name="total_time_default_ais") + + +def downgrade() -> None: + pass