You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
823 B
33 lines
823 B
"""remove TrainStation id
|
|
|
|
Revision ID: 7866a6e8a75b
|
|
Revises: 1b3bc6809b30
|
|
Create Date: 2024-08-15 15:29:40.410360
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '7866a6e8a75b'
|
|
down_revision = '1b3bc6809b30'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('train_station', schema=None) as batch_op:
|
|
batch_op.drop_column('id')
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('train_station', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('id', sa.INTEGER(), autoincrement=False, nullable=False))
|
|
|
|
# ### end Alembic commands ###
|