mirror of
https://github.com/simple-login/app.git
synced 2024-09-20 17:01:29 +02:00
56ec95bc93
* Fix proton integration issues * Make external_user_id non nullable * Fix tests
34 lines
859 B
Python
34 lines
859 B
Python
"""make external_user_id non nullable
|
|
|
|
Revision ID: 36646e5dc6d9
|
|
Revises: 82d3c7109ffb
|
|
Create Date: 2022-06-10 16:07:11.538577
|
|
|
|
"""
|
|
import sqlalchemy_utils
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '36646e5dc6d9'
|
|
down_revision = '82d3c7109ffb'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.alter_column('partner_user', 'external_user_id',
|
|
existing_type=sa.VARCHAR(length=128),
|
|
nullable=False)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.alter_column('partner_user', 'external_user_id',
|
|
existing_type=sa.VARCHAR(length=128),
|
|
nullable=True)
|
|
# ### end Alembic commands ###
|