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

@ -12,7 +12,7 @@ class LogDatabase extends Extension
{
global $config, $database;
if ($config->get_int("ext_log_database_version") < 1) {
if ($this->get_version("ext_log_database_version") < 1) {
$database->create_table("score_log", "
id SCORE_AIPK,
date_sent TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
@ -23,7 +23,7 @@ class LogDatabase extends Extension
message TEXT NOT NULL
");
//INDEX(section)
$config->set_int("ext_log_database_version", 1);
$this->set_version("ext_log_database_version", 1);
}
}
@ -141,7 +141,7 @@ class LogDatabase extends Extension
$username = ($user && $user->name) ? $user->name : "null";
// not installed yet...
if ($config->get_int("ext_log_database_version") < 1) {
if ($this->get_version("ext_log_database_version") < 1) {
return;
}