more version

This commit is contained in:
Shish
2019-11-03 19:49:52 +00:00
parent 539dd66fe8
commit f15a95b4de
17 changed files with 58 additions and 70 deletions

View File

@ -176,7 +176,7 @@ class ReportImage extends Extension
{
global $database, $config;
if ($config->get_int("ext_report_image_version") < 1) {
if ($this->get_version("ext_report_image_version") < 1) {
$database->create_table("image_reports", "
id SCORE_AIPK,
image_id INTEGER NOT NULL,
@ -185,7 +185,7 @@ class ReportImage extends Extension
FOREIGN KEY (image_id) REFERENCES images(id) ON DELETE CASCADE,
FOREIGN KEY (reporter_id) REFERENCES users(id) ON DELETE CASCADE
");
$config->set_int("ext_report_image_version", 1);
$this->set_version("ext_report_image_version", 1);
}
}