Skip to content

Commit 5f06f3b

Browse files
authored
[HOTFIX] adding default value to is_validated (#534)
1 parent 8e9def9 commit 5f06f3b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core_backend/migrations/versions/2025_04_15_6696ae641e6e_add_is_active_and_is_validated_columns.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020

2121
def upgrade() -> None:
2222
# ### commands auto generated by Alembic - please adjust! ###
23-
op.add_column("content", sa.Column("is_validated", sa.Boolean(), nullable=False))
23+
op.add_column(
24+
"content",
25+
sa.Column(
26+
"is_validated", sa.Boolean(), nullable=False, server_default=sa.true()
27+
),
28+
)
2429
op.add_column(
2530
"content",
2631
sa.Column(

0 commit comments

Comments
 (0)