mirror of
https://github.com/apache/superset.git
synced 2024-09-18 11:39:49 -04:00
fix: default when adding tab_state.hide_left_bar (#13603)
This commit is contained in:
parent
6e303f3c12
commit
4fc41e1cce
@ -29,12 +29,18 @@ down_revision = "1412ec1e5a7b"
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
from sqlalchemy.dialects import mysql
|
||||
from sqlalchemy.sql import expression
|
||||
|
||||
|
||||
def upgrade():
|
||||
with op.batch_alter_table("tab_state") as batch_op:
|
||||
batch_op.add_column(
|
||||
sa.Column("hide_left_bar", sa.Boolean(), nullable=False, default=False)
|
||||
sa.Column(
|
||||
"hide_left_bar",
|
||||
sa.Boolean(),
|
||||
nullable=False,
|
||||
server_default=expression.false(),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user