mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-30 17:41:53 +00:00
fix migration, add server_default for boolean
This commit is contained in:
parent
18ebf134d5
commit
2e2e741d0f
|
@ -20,7 +20,7 @@ def upgrade():
|
|||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.create_table('user_preferences',
|
||||
sa.Column('user_id', sa.Integer(), nullable=False),
|
||||
sa.Column('hide_comments', sa.Boolean(), nullable=False),
|
||||
sa.Column('hide_comments', sa.Boolean(), server_default=sa.sql.expression.false(), nullable=False),
|
||||
sa.ForeignKeyConstraint(['user_id'], ['users.id'], ondelete='CASCADE'),
|
||||
sa.PrimaryKeyConstraint('user_id')
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue