This commit is contained in:
2026-06-16 09:19:32 +03:00
parent 7f1516c9c9
commit 8f3ac70b20
43 changed files with 1644 additions and 4668 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
from sqlalchemy import inspect, text
from app.db.base import engine
from app.db.dialect import bool_literal
def run_migrations() -> None:
@@ -17,7 +18,7 @@ def run_migrations() -> None:
conn.execute(
text(
"ALTER TABLE pomodoro_sessions "
"ADD COLUMN completion_notified BOOLEAN DEFAULT 0"
f"ADD COLUMN completion_notified BOOLEAN DEFAULT {bool_literal(engine, False)}"
)
)