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.
34 lines
764 B
34 lines
764 B
"""empty message
|
|
|
|
Revision ID: e684fc6a59d9
|
|
Revises:
|
|
Create Date: 2024-06-27 17:20:11.374904
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'e684fc6a59d9'
|
|
down_revision = None
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('person',
|
|
sa.Column('pid', sa.Integer(), nullable=False),
|
|
sa.Column('name', sa.Text(), nullable=True),
|
|
sa.Column('age', sa.Integer(), nullable=True),
|
|
sa.PrimaryKeyConstraint('pid')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('person')
|
|
# ### end Alembic commands ###
|