odapi/migrations/versions/0a4f01e489de_set_users_stat...

26 lines
492 B
Python
Raw Normal View History

2020-09-10 23:59:06 +02:00
"""set users status default value
Revision ID: 0a4f01e489de
Revises: 15a14d428bff
Create Date: 2020-09-10 23:54:22.624598
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "0a4f01e489de"
down_revision = "15a14d428bff"
branch_labels = None
depends_on = None
def upgrade():
with op.batch_alter_table("users") as batch_op:
batch_op.alter_column(column_name="status", server_default=sa.text("0"))
def downgrade():
pass