ScoDoc-Lille/migrations/versions/669065fb2d20_flag_bloquage_calcul_moyennes.py

34 lines
778 B
Python
Raw 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.
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! ###
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! ###
op.drop_column("notes_formsemestre", "block_moyennes")
2021-09-16 22:31:47 +02:00
# ### end Alembic commands ###