31 lines
823 B
Python
31 lines
823 B
Python
"""name the pet
|
|
|
|
Revision ID: 20da26039edf
|
|
Revises: 44fbe5f1a689
|
|
Create Date: 2023-05-18 11:18:35.748333
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
import sqlmodel
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '20da26039edf'
|
|
down_revision = '44fbe5f1a689'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('hero', 'new_attribute')
|
|
op.add_column('pet', sa.Column('name', sqlmodel.sql.sqltypes.AutoString(), nullable=False))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('pet', 'name')
|
|
op.add_column('hero', sa.Column('new_attribute', sa.VARCHAR(), nullable=True))
|
|
# ### end Alembic commands ###
|