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.

43 lines
1.1 KiB

"""empty message
Revision ID: 43a744ce1b04
Revises:
Create Date: 2024-06-28 16:58:21.904222
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '43a744ce1b04'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('people',
sa.Column('uid', sa.Integer(), nullable=False),
sa.Column('name', sa.String(), nullable=False),
sa.Column('job', sa.String(), nullable=True),
sa.Column('age', sa.Integer(), nullable=True),
sa.PrimaryKeyConstraint('uid')
)
op.create_table('todos',
sa.Column('tid', sa.Integer(), nullable=False),
sa.Column('title', sa.String(), nullable=False),
sa.Column('done', sa.Boolean(), nullable=False),
sa.Column('description', sa.String(), nullable=True),
sa.PrimaryKeyConstraint('tid')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('todos')
op.drop_table('people')
# ### end Alembic commands ###