T30+T31: add dapp is_new_version bool field, default false (V21, §I.getDapps)

This commit is contained in:
proitlab committed 2026-08-19 18:48:49 +07:00
1 parent 01ee7ec733
commit 7ae6b8f4f8
5 files changed
+15 -1

No files matched your search

+5
View File
@@ -60,6 +60,11 @@ def _ensure_migrations(engine):
with engine.begin() as conn:
conn.execute(text("ALTER TABLE dapps ADD COLUMN is_live_override BOOLEAN NOT NULL DEFAULT 0"))
if "is_new_version" not in cols:
from sqlalchemy import text
with engine.begin() as conn:
conn.execute(text("ALTER TABLE dapps ADD COLUMN is_new_version BOOLEAN NOT NULL DEFAULT 0"))
def init_db():