Skip to content
Snippets Groups Projects
Commit 796f5202 authored by kaiyou's avatar kaiyou
Browse files

Make service single_profile non nullable

parent ea6f9067
No related branches found
No related tags found
No related merge requests found
""" Make service single_profile non nullable
Revision ID: 5d4ff2ca81c2
Revises: dfaca8ae3426
Create Date: 2020-08-26 17:42:09.303387
"""
from alembic import op
import sqlalchemy as sa
import hiboo
revision = '5d4ff2ca81c2'
down_revision = 'dfaca8ae3426'
branch_labels = None
depends_on = None
def upgrade():
with op.batch_alter_table('service') as batch_op:
batch_op.alter_column('single_profile', existing_type=sa.BOOLEAN(), nullable=False)
def downgrade():
with op.batch_alter_table('service') as batch_op:
batch_op.alter_column('single_profile', existing_type=sa.BOOLEAN(), nullable=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment