Add default to column spam_mark_as_read

master
Alexander Graf 3 years ago committed by GitHub
parent 04b7ddfffd
commit e75201bb34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,7 +15,7 @@ import sqlalchemy as sa
def upgrade():
op.add_column('user', sa.Column('spam_mark_as_read', sa.Boolean(), nullable=False))
op.add_column('user', sa.Column('spam_mark_as_read', sa.Boolean(), nullable=False, server_default=sa.sql.expression.false()))
def downgrade():
op.drop_column('user', 'spam_mark_as_read')

Loading…
Cancel
Save