wip
This commit is contained in:
parent
4be274d9e2
commit
c238b9d757
21 changed files with 219 additions and 184 deletions
29
migrations/versions/19d198151caf_add_shoe_size.py
Normal file
29
migrations/versions/19d198151caf_add_shoe_size.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
"""add shoe size
|
||||
|
||||
Revision ID: 19d198151caf
|
||||
Revises: 20da26039edf
|
||||
Create Date: 2023-05-19 13:41:45.070918
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
import sqlmodel
|
||||
|
||||
|
||||
# revision identifiers, used by Alembic.
|
||||
revision = '19d198151caf'
|
||||
down_revision = '20da26039edf'
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('hero', sa.Column('shoe_size', sa.Integer(), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('hero', 'shoe_size')
|
||||
# ### end Alembic commands ###
|
||||
Loading…
Add table
Add a link
Reference in a new issue