You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
710 B
29 lines
710 B
"""Added school year column to user history.
|
|
|
|
Revision ID: c60b7bfaaf85
|
|
Revises: 4c132220432f
|
|
Create Date: 2021-09-02 08:36:41.711040
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'c60b7bfaaf85'
|
|
down_revision = '4c132220432f'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('user_cooperation', sa.Column('school_year', sa.String(), nullable=False))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('user_cooperation', 'school_year')
|
|
# ### end Alembic commands ###
|