forked from ScoDoc/ScoDoc
Migration pour ordre des groupes
This commit is contained in:
parent
53cf6fa2c6
commit
3a059c4f44
28
migrations/versions/d718533466aa_ordre_des_groupes.py
Normal file
28
migrations/versions/d718533466aa_ordre_des_groupes.py
Normal 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 ###
|
Loading…
Reference in New Issue
Block a user