aboutsummaryrefslogtreecommitdiff
path: root/migrations/versions/d06fc42b93bd_enroll_request.py
blob: 8b429d5a309874c39c7bb0cf5d7366240479d508 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"""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 ###