work
This commit is contained in:
33
migration/versions/16041bfd2411_initial.py
Normal file
33
migration/versions/16041bfd2411_initial.py
Normal 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 ###
|
||||
Reference in New Issue
Block a user