mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 06:31:27 +08:00
34 lines
802 B
Python
34 lines
802 B
Python
|
"""empty message
|
||
|
|
||
|
Revision ID: 30c13ca016e4
|
||
|
Revises: 4e4a759ac4b5
|
||
|
Create Date: 2020-03-20 12:28:12.901907
|
||
|
|
||
|
"""
|
||
|
import sqlalchemy_utils
|
||
|
from alembic import op
|
||
|
import sqlalchemy as sa
|
||
|
|
||
|
|
||
|
# revision identifiers, used by Alembic.
|
||
|
revision = '30c13ca016e4'
|
||
|
down_revision = '4e4a759ac4b5'
|
||
|
branch_labels = None
|
||
|
depends_on = None
|
||
|
|
||
|
|
||
|
def upgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.alter_column('alias_used_on', 'user_id',
|
||
|
existing_type=sa.INTEGER(),
|
||
|
nullable=False)
|
||
|
# ### end Alembic commands ###
|
||
|
|
||
|
|
||
|
def downgrade():
|
||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||
|
op.alter_column('alias_used_on', 'user_id',
|
||
|
existing_type=sa.INTEGER(),
|
||
|
nullable=True)
|
||
|
# ### end Alembic commands ###
|