From 872e29cba1db7f518ccf91b618493acaf241f75d Mon Sep 17 00:00:00 2001 From: Alexander Zhirov Date: Mon, 15 Sep 2025 10:59:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=20=D1=81=D0=BF=D0=B8=D1=81=D0=BE=D0=BA?= =?UTF-8?q?=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=20=D0=B4=D0=BB=D1=8F=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20labels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/cdcdb/dblite.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/cdcdb/dblite.d b/source/cdcdb/dblite.d index 217652a..173627f 100644 --- a/source/cdcdb/dblite.d +++ b/source/cdcdb/dblite.d @@ -104,7 +104,7 @@ private: { SqliteResult queryResult = sql( q{ - WITH required(name) AS (VALUES ("snapshots"), ("blobs"), ("snapshot_chunks")) + WITH required(name) AS (VALUES ("snapshots"), ("blobs"), ("snapshot_chunks"), ("labels")) SELECT name AS missing_table FROM required WHERE NOT EXISTS ( @@ -122,11 +122,11 @@ private: missingTables ~= row["missing_table"].to!string; } - enforce(missingTables.length == 0 || missingTables.length == 3, + enforce(missingTables.length == 0 || missingTables.length == 4, "Database is corrupted. Missing tables: " ~ missingTables.join(", ") ); - if (missingTables.length == 3) + if (missingTables.length == 4) { foreach (schemeQuery; _scheme) {