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")