fixes
This commit is contained in:
parent
954158ad43
commit
fc7da5114f
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Reference in a new issue