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.
|
|
"""empty message
Revision ID: 6249fce1ead9 Revises: 282564545160 Create Date: 2023-05-22 11:28:00.309973
"""
from alembic import op import sqlalchemy as sa
# revision identifiers, used by Alembic. revision = '6249fce1ead9' down_revision = '282564545160' branch_labels = None depends_on = None
def upgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('chemical', schema=None) as batch_op: batch_op.add_column(sa.Column('person_id', sa.Integer(), nullable=False)) batch_op.drop_column('person_name')
# ### end Alembic commands ###
def downgrade(): # ### commands auto generated by Alembic - please adjust! ### with op.batch_alter_table('chemical', schema=None) as batch_op: batch_op.add_column(sa.Column('person_name', sa.VARCHAR(), nullable=False)) batch_op.drop_column('person_id')
# ### end Alembic commands ###
|