fix: workaround db migration error when adding custom_disclaimer column to recommended_apps (#4518)

Co-authored-by: takatost <takatost@gmail.com>
This commit is contained in:
Bowen Liang
2024-05-20 12:33:21 +08:00
committed by GitHub
parent 4086f5051c
commit 3a51f2a778
2 changed files with 3 additions and 3 deletions

View File

@@ -20,7 +20,7 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('recommended_apps', schema=None) as batch_op:
batch_op.add_column(sa.Column('custom_disclaimer', sa.String(length=255), nullable=False))
batch_op.add_column(sa.Column('custom_disclaimer', sa.String(length=255), nullable=True))
with op.batch_alter_table('sites', schema=None) as batch_op:
batch_op.add_column(sa.Column('custom_disclaimer', sa.String(length=255), nullable=True))