mirror of
https://github.com/ProjectSynthoria/SynthoriaArchive.git
synced 2025-03-12 15:26:56 +02:00
fix migration, add server_default for boolean
This commit is contained in:
parent
18ebf134d5
commit
2e2e741d0f
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ def upgrade():
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
op.create_table('user_preferences',
|
op.create_table('user_preferences',
|
||||||
sa.Column('user_id', sa.Integer(), nullable=False),
|
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.ForeignKeyConstraint(['user_id'], ['users.id'], ondelete='CASCADE'),
|
||||||
sa.PrimaryKeyConstraint('user_id')
|
sa.PrimaryKeyConstraint('user_id')
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue