create index for has_children
This commit is contained in:
parent
32dbdccd00
commit
a3296e18ae
@ -21,6 +21,12 @@ class Relationships extends Extension {
|
|||||||
$config->set_int("ext_relationships_version", 1);
|
$config->set_int("ext_relationships_version", 1);
|
||||||
log_info("relationships", "extension installed");
|
log_info("relationships", "extension installed");
|
||||||
}
|
}
|
||||||
|
if ($config->get_int("ext_relationships_version") < 2){
|
||||||
|
$database->execute("CREATE INDEX images__has_children ON images(has_children)");
|
||||||
|
|
||||||
|
$config->set_int("ext_relationships_version", 2);
|
||||||
|
log_info("relationships", "extension updated");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onImageInfoSet(ImageInfoSetEvent $event) {
|
public function onImageInfoSet(ImageInfoSetEvent $event) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user