skip to latest relationships table
This commit is contained in:
parent
4ed7a1d529
commit
7820096bd9
1 changed files with 2 additions and 1 deletions
|
@ -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)");
|
||||
|
|
Reference in a new issue