123456789101112131415161718192021222324252627282930313233343536 |
- """init
- Revision ID: ebd87de4edcc
- Revises: 68260864aa47
- Create Date: 2020-03-28 15:21:00.743680
- """
- from alembic import op
- import sqlalchemy as sa
- # revision identifiers, used by Alembic.
- revision = 'ebd87de4edcc'
- down_revision = '68260864aa47'
- branch_labels = None
- depends_on = None
- def upgrade():
- # ### commands auto generated by Alembic - please adjust! ###
- op.create_table('users',
- sa.Column('user_id', sa.Integer(), nullable=False),
- sa.Column('class_', sa.Integer(), nullable=True),
- sa.Column('subject', sa.String(), nullable=True),
- sa.PrimaryKeyConstraint('user_id')
- )
- op.create_index(op.f('ix_users_user_id'), 'users', ['user_id'], unique=True)
- # ### end Alembic commands ###
- def downgrade():
- # ### commands auto generated by Alembic - please adjust! ###
- op.drop_index(op.f('ix_users_user_id'), table_name='users')
- op.drop_table('users')
- # ### end Alembic commands ###
|