Improved form regeneration for artic.
This commit is contained in:
36
alembic/versions/94289d4e63e6_updating_primary_key_for_.py
Normal file
36
alembic/versions/94289d4e63e6_updating_primary_key_for_.py
Normal file
@@ -0,0 +1,36 @@
|
||||
"""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 ###
|
||||
Reference in New Issue
Block a user