Migration pour ordre des groupes

This commit is contained in:
Emmanuel Viennet 2022-07-24 22:18:42 +02:00
parent 53cf6fa2c6
commit 3a059c4f44
1 changed files with 28 additions and 0 deletions

View File

@ -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 ###