Skip to content

Commit d79b499

Browse files
committed
Add default values
1 parent f2d7761 commit d79b499

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

migrations/versions/28e53a4e60fe_add_combo_multipliers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def upgrade():
3030
existing_server_default=sa.text('0'))
3131

3232
with op.batch_alter_table('user', schema=None) as batch_op:
33-
batch_op.add_column(sa.Column('combo_multiplier', sa.Integer(), nullable=False))
34-
batch_op.add_column(sa.Column('last_task_completed', sa.Integer(), nullable=False))
33+
batch_op.add_column(sa.Column('combo_multiplier', sa.Integer(), nullable=False, server_default='0'))
34+
batch_op.add_column(sa.Column('last_task_completed', sa.Integer(), nullable=False, server_default='-1'))
3535
batch_op.alter_column('tasks_completed',
3636
existing_type=sa.INTEGER(),
3737
nullable=False,

0 commit comments

Comments
 (0)