From 3a059c4f445148f7f4cc5c82c930da6af692f395 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sun, 24 Jul 2022 22:18:42 +0200 Subject: [PATCH] Migration pour ordre des groupes --- .../d718533466aa_ordre_des_groupes.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 migrations/versions/d718533466aa_ordre_des_groupes.py diff --git a/migrations/versions/d718533466aa_ordre_des_groupes.py b/migrations/versions/d718533466aa_ordre_des_groupes.py new file mode 100644 index 000000000..7b6e94732 --- /dev/null +++ b/migrations/versions/d718533466aa_ordre_des_groupes.py @@ -0,0 +1,28 @@ +"""Ordre des groupes + +Revision ID: d718533466aa +Revises: cb360caa3dac +Create Date: 2022-07-24 21:33:26.728182 + +""" +from alembic import op +import sqlalchemy as sa + + +# revision identifiers, used by Alembic. +revision = "d718533466aa" +down_revision = "cb360caa3dac" +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.add_column("group_descr", sa.Column("numero", sa.Integer(), nullable=True)) + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_column("group_descr", "numero") + # ### end Alembic commands ###