From 2a50eab46e7a884a904d245fb90ddc7e34a97e1f Mon Sep 17 00:00:00 2001 From: Alexander Terry Date: Tue, 23 Apr 2024 15:11:52 -0800 Subject: [PATCH] patch sql upgrade --- alembic/versions/e2d7febddf07_use_enum_for_sugery.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alembic/versions/e2d7febddf07_use_enum_for_sugery.py b/alembic/versions/e2d7febddf07_use_enum_for_sugery.py index 800b45d..bbded67 100644 --- a/alembic/versions/e2d7febddf07_use_enum_for_sugery.py +++ b/alembic/versions/e2d7febddf07_use_enum_for_sugery.py @@ -26,7 +26,10 @@ def upgrade() -> None: op.add_column( 'sugeryusers', sa.Column( - 'lastGroup', sa.Enum('VERYLOW', 'LOW', 'NORMAL', 'HIGH', 'VERYHIGH', name='sugeryzone'), nullable=False + 'lastGroup', + sa.Enum('VERYLOW', 'LOW', 'NORMAL', 'HIGH', 'VERYHIGH', name='sugeryzone'), + nullable=False, + server_default='NORMAL', ), )