35 lines
852 B
Python
35 lines
852 B
Python
"""empty message
|
|
|
|
Revision ID: ab06a94e5d4c
|
|
Revises: 2e7b377cbc7b
|
|
Create Date: 2020-07-30 11:23:46.601338
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'ab06a94e5d4c'
|
|
down_revision = '2e7b377cbc7b'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.create_table('admin_session',
|
|
sa.Column('id', sa.Integer(), nullable=False),
|
|
sa.Column('token', sa.String(), nullable=True),
|
|
sa.Column('admin_impersonate_uid', sa.String(), nullable=True),
|
|
sa.PrimaryKeyConstraint('id'),
|
|
sa.UniqueConstraint('token')
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_table('admin_session')
|
|
# ### end Alembic commands ###
|