From 7820096bd9eb555bb4e489cdaf7312864f41abce Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 26 Oct 2020 19:17:11 +0000 Subject: [PATCH] skip to latest relationships table --- ext/relationships/main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/relationships/main.php b/ext/relationships/main.php index 87bf0fa3..9a89d5f3 100644 --- a/ext/relationships/main.php +++ b/ext/relationships/main.php @@ -35,7 +35,8 @@ class Relationships extends Extension $database->execute("ALTER TABLE images ADD parent_id INT"); $database->execute("ALTER TABLE images ADD has_children BOOLEAN DEFAULT FALSE NOT NULL"); $database->execute("CREATE INDEX images__parent_id ON images(parent_id)"); - $this->set_version("ext_relationships_version", 1); + $database->execute("CREATE INDEX images__has_children ON images(has_children)"); + $this->set_version("ext_relationships_version", 3); } if ($this->get_version("ext_relationships_version") < 2) { $database->execute("CREATE INDEX images__has_children ON images(has_children)");