From a5eeab37e1210ccf31f6f850790262d9d52d00e6 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Fri, 25 Nov 2022 10:43:00 +0100 Subject: [PATCH] Add default for column allow_spoofing --- core/admin/migrations/versions/7ac252f2bbbf_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/admin/migrations/versions/7ac252f2bbbf_.py b/core/admin/migrations/versions/7ac252f2bbbf_.py index c37bf554..039ab8b6 100644 --- a/core/admin/migrations/versions/7ac252f2bbbf_.py +++ b/core/admin/migrations/versions/7ac252f2bbbf_.py @@ -15,7 +15,7 @@ import sqlalchemy as sa def upgrade(): - op.add_column('user', sa.Column('allow_spoofing', sa.Boolean(), nullable=False)) + op.add_column('user', sa.Column('allow_spoofing', sa.Boolean(), nullable=False, server_default=sa.sql.expression.false())) def downgrade():