aboutsummaryrefslogblamecommitdiff
path: root/migrations/versions/d06fc42b93bd_enroll_request.py
blob: 8b429d5a309874c39c7bb0cf5d7366240479d508 (plain) (tree)

































                                                                 
"""enroll request

Revision ID: d06fc42b93bd
Revises: afd561b2a827
Create Date: 2022-09-22 14:27:35.115636

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'd06fc42b93bd'
down_revision = 'afd561b2a827'
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('enroll_request',
    sa.Column('id', sa.String(), nullable=False),
    sa.Column('user', sa.String(), nullable=False),
    sa.Column('expires', sa.DateTime(), nullable=False),
    sa.ForeignKeyConstraint(['user'], ['user.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('enroll_request')
    # ### end Alembic commands ###