fix: Fix is_admin migration failure

Provide default value for is_admin migration
master
John Montagu, the 4th Earl of Sandvich 2025-05-13 23:22:43 -07:00
parent e98bd1f647
commit 4bc6cf7e3c
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('players', schema=None) as batch_op:
batch_op.add_column(sa.Column('is_admin', sa.Boolean(), nullable=False, default=False))
batch_op.add_column(sa.Column('is_admin', sa.Boolean(), nullable=False, server_default="0"))
# ### end Alembic commands ###