forked from ScoDoc/ScoDoc
37 lines
835 B
Python
37 lines
835 B
Python
"""Ajout flag block_moyenne_generale
|
|
|
|
Revision ID: 52f5f35c077f
|
|
Revises: dbb4a0b19dbb
|
|
Create Date: 2022-11-01 17:14:06.508637
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "52f5f35c077f"
|
|
down_revision = "dbb4a0b19dbb"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column(
|
|
"notes_formsemestre",
|
|
sa.Column(
|
|
"block_moyenne_generale",
|
|
sa.Boolean(),
|
|
server_default="false",
|
|
nullable=False,
|
|
),
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column("notes_formsemestre", "block_moyenne_generale")
|
|
# ### end Alembic commands ###
|