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