This commit is contained in:
dderbentsov
2023-07-13 02:14:21 +03:00
parent bc339cefb9
commit 322f14c096
7 changed files with 86 additions and 14 deletions

View File

@@ -0,0 +1,33 @@
"""initial
Revision ID: 16041bfd2411
Revises:
Create Date: 2023-07-13 01:26:56.342068
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '16041bfd2411'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('people',
sa.Column('id', sa.UUID(), nullable=False),
sa.Column('first_name', sa.Text(), nullable=False),
sa.Column('last_name', sa.Text(), nullable=False),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('people')
# ### end Alembic commands ###