36 lines
943 B
Python
36 lines
943 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 0232292c96ab
|
||
|
Revises: e0b52571de61
|
||
|
Create Date: 2023-04-20 19:52:09.265045
|
||
|
|
||
|
"""
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '0232292c96ab'
|
||
|
down_revision = 'e0b52571de61'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.create_table('call_numbers',
|
||
|
sa.Column('id', sa.Integer(), nullable=False),
|
||
|
sa.Column('appointment_id', sa.Integer(), nullable=True),
|
||
|
sa.Column('notified', sa.Boolean(), nullable=True),
|
||
|
sa.Column('call_time', sa.DateTime(), nullable=True),
|
||
|
sa.ForeignKeyConstraint(['appointment_id'], ['appointment.id'], ),
|
||
|
sa.PrimaryKeyConstraint('id')
|
||
|
)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.drop_table('call_numbers')
|
||
|
# ### end Alembic commands ###
|