ScoDoc/migrations/versions/669065fb2d20_flag_bloquage_calcul_moyennes.py

29 lines
733 B
Python
Raw Permalink Normal View History

2021-09-16 22:31:47 +02:00
"""Flag bloquage calcul moyennes
Revision ID: 669065fb2d20
Revises: a217bf588f4c
Create Date: 2021-09-16 22:04:11.624632
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
2022-07-11 13:39:50 +02:00
revision = '669065fb2d20'
down_revision = 'a217bf588f4c'
2021-09-16 22:31:47 +02:00
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
2022-07-11 13:39:50 +02:00
op.add_column('notes_formsemestre', sa.Column('block_moyennes', sa.Boolean(), server_default='false', nullable=False))
2021-09-16 22:31:47 +02:00
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
2022-07-11 13:39:50 +02:00
op.drop_column('notes_formsemestre', 'block_moyennes')
2021-09-16 22:31:47 +02:00
# ### end Alembic commands ###