From ba506d7f8e6a57aa8b01d3c7180c019691e8345a Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 11 Jun 2024 09:08:17 +0200 Subject: [PATCH] Migration : code apo RCUE dans les UEs. Avec 4ae484061e --- .../versions/809faa9d89ec_code_apo_rcue.py | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 migrations/versions/809faa9d89ec_code_apo_rcue.py diff --git a/migrations/versions/809faa9d89ec_code_apo_rcue.py b/migrations/versions/809faa9d89ec_code_apo_rcue.py new file mode 100644 index 000000000..6a2e383a1 --- /dev/null +++ b/migrations/versions/809faa9d89ec_code_apo_rcue.py @@ -0,0 +1,29 @@ +"""Ajoute code apo RCUE sur les UEs + +Revision ID: 809faa9d89ec +Revises: cddabc3f868a +Create Date: 2024-06-07 11:06:07.694166 + +""" + +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = "809faa9d89ec" +down_revision = "cddabc3f868a" +branch_labels = None +depends_on = None + + +def upgrade(): + with op.batch_alter_table("notes_ue", schema=None) as batch_op: + batch_op.add_column( + sa.Column("code_apogee_rcue", sa.String(length=512), nullable=True) + ) + + +def downgrade(): + with op.batch_alter_table("notes_ue", schema=None) as batch_op: + batch_op.drop_column("code_apogee_rcue")