2021-09-04 11:37:46 +02:00
|
|
|
"""Augmente taille codes Apogee
|
|
|
|
|
|
|
|
Revision ID: f6e7d2e01be1
|
|
|
|
Revises: d3d92b2d0092
|
|
|
|
Create Date: 2021-09-04 11:20:38.699489
|
|
|
|
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
|
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
2022-05-09 16:26:23 +02:00
|
|
|
revision = "f6e7d2e01be1"
|
|
|
|
down_revision = "d3d92b2d0092"
|
2021-09-04 11:37:46 +02:00
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
2022-05-09 16:26:23 +02:00
|
|
|
op.alter_column(
|
|
|
|
"notes_formsemestre_etapes",
|
|
|
|
"etape_apo",
|
|
|
|
existing_type=sa.VARCHAR(length=16),
|
|
|
|
type_=sa.String(length=24),
|
|
|
|
existing_nullable=True,
|
|
|
|
)
|
|
|
|
op.alter_column(
|
|
|
|
"notes_formsemestre_inscription",
|
|
|
|
"etape",
|
|
|
|
existing_type=sa.VARCHAR(length=16),
|
|
|
|
type_=sa.String(length=24),
|
|
|
|
existing_nullable=True,
|
|
|
|
)
|
|
|
|
op.alter_column(
|
|
|
|
"notes_modules",
|
|
|
|
"code_apogee",
|
|
|
|
existing_type=sa.VARCHAR(length=16),
|
|
|
|
type_=sa.String(length=24),
|
|
|
|
existing_nullable=True,
|
|
|
|
)
|
|
|
|
op.alter_column(
|
|
|
|
"notes_ue",
|
|
|
|
"code_apogee",
|
|
|
|
existing_type=sa.VARCHAR(length=16),
|
|
|
|
type_=sa.String(length=24),
|
|
|
|
existing_nullable=True,
|
|
|
|
)
|
2021-09-04 11:37:46 +02:00
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
2022-05-09 16:26:23 +02:00
|
|
|
op.alter_column(
|
|
|
|
"notes_ue",
|
|
|
|
"code_apogee",
|
|
|
|
existing_type=sa.String(length=24),
|
|
|
|
type_=sa.VARCHAR(length=16),
|
|
|
|
existing_nullable=True,
|
|
|
|
)
|
|
|
|
op.alter_column(
|
|
|
|
"notes_modules",
|
|
|
|
"code_apogee",
|
|
|
|
existing_type=sa.String(length=24),
|
|
|
|
type_=sa.VARCHAR(length=16),
|
|
|
|
existing_nullable=True,
|
|
|
|
)
|
|
|
|
op.alter_column(
|
|
|
|
"notes_formsemestre_inscription",
|
|
|
|
"etape",
|
|
|
|
existing_type=sa.String(length=24),
|
|
|
|
type_=sa.VARCHAR(length=16),
|
|
|
|
existing_nullable=True,
|
|
|
|
)
|
|
|
|
op.alter_column(
|
|
|
|
"notes_formsemestre_etapes",
|
|
|
|
"etape_apo",
|
|
|
|
existing_type=sa.String(length=24),
|
|
|
|
type_=sa.VARCHAR(length=16),
|
|
|
|
existing_nullable=True,
|
|
|
|
)
|
2021-09-04 11:37:46 +02:00
|
|
|
# ### end Alembic commands ###
|