This commit is contained in:
Shish 2019-11-03 23:43:35 +00:00
parent 954158ad43
commit fc7da5114f
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ class Upgrade extends Extension
log_info("upgrade", "Converting user flags to classes");
$database->execute("ALTER TABLE users ADD COLUMN class VARCHAR(32) NOT NULL default :user", ["user" => "user"]);
$database->execute("UPDATE users SET class = :name WHERE id=:id", ["name"=>"anonymous", "id"=>$this->get_version('anon_id')]);
$database->execute("UPDATE users SET class = :name WHERE id=:id", ["name"=>"anonymous", "id"=>$config->get_int('anon_id')]);
$database->execute("UPDATE users SET class = :name WHERE admin=:admin", ["name"=>"admin", "admin"=>'Y']);
$this->set_version("db_version", 11);

View file

@ -77,7 +77,7 @@ class Wiki extends Extension
{
global $database, $config;
if ($this->get_version("ext_wiki_version", 0) < 1) {
if ($this->get_version("ext_wiki_version") < 1) {
$database->create_table("wiki_pages", "
id SCORE_AIPK,
owner_id INTEGER NOT NULL,