From ba7e0b1203befbc852a8113bf4e079a3ad457916 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Fri, 3 Feb 2023 23:16:03 -0300 Subject: [PATCH] allow insertion of facts that haven't been proven true yet --- src/models/fact.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models/fact.cpp b/src/models/fact.cpp index fa83326..d517286 100644 --- a/src/models/fact.cpp +++ b/src/models/fact.cpp @@ -9,6 +9,7 @@ const char* obelisk::Fact::createTable() "left_entity" INTEGER NOT NULL, "right_entity" INTEGER NOT NULL, "verb" INTEGER NOT NULL, + "is_true" INTEGER NOT NULL DEFAULT 0, PRIMARY KEY("id" AUTOINCREMENT), UNIQUE("left_entity", "right_entity", "verb") FOREIGN KEY("verb") REFERENCES "verb"("id") ON DELETE RESTRICT,