From fab594760a5099892315e55eb3879d0e57d7ddce Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Wed, 24 Apr 2024 22:19:13 -0700 Subject: [PATCH] Provide string to server_default --- migrations/versions/28e9e049850c_add_pinned_articles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/versions/28e9e049850c_add_pinned_articles.py b/migrations/versions/28e9e049850c_add_pinned_articles.py index adf2fdc..1efe5d0 100644 --- a/migrations/versions/28e9e049850c_add_pinned_articles.py +++ b/migrations/versions/28e9e049850c_add_pinned_articles.py @@ -14,8 +14,8 @@ import sqlalchemy as sa def upgrade(): - op.add_column("article", sa.Column("pinned_article", sa.Boolean(), nullable=False, server_default=False)) - op.add_column("article_revision", sa.Column("pinned_article", sa.Boolean(), nullable=False, server_default=False)) + op.add_column("article", sa.Column("pinned_article", sa.Boolean(), nullable=False, server_default="0")) + op.add_column("article_revision", sa.Column("pinned_article", sa.Boolean(), nullable=False, server_default="0")) pass