37 lines
1000 B
Python
37 lines
1000 B
Python
"""Updating primary key for SubmissionEquipmentAssociation
|
|
|
|
Revision ID: 94289d4e63e6
|
|
Revises: 30aab47d6f12
|
|
Create Date: 2024-01-03 15:14:21.156127
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '94289d4e63e6'
|
|
down_revision = '30aab47d6f12'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('_equipment_submissions', schema=None) as batch_op:
|
|
batch_op.alter_column('role',
|
|
existing_type=sa.VARCHAR(length=64),
|
|
nullable=False)
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('_equipment_submissions', schema=None) as batch_op:
|
|
batch_op.alter_column('role',
|
|
existing_type=sa.VARCHAR(length=64),
|
|
nullable=True)
|
|
|
|
# ### end Alembic commands ###
|