This commit is contained in:
Shish 2020-10-26 16:56:56 +00:00
parent 89f5d5524f
commit 7b3555eaa7

View file

@ -152,7 +152,7 @@ class Wiki extends Extension
$database->execute("UPDATE wiki_pages SET locked=0 WHERE locked=2;");
}
if ($d == DatabaseDriver::SQLITE) {
$database->execute("ALTER TABLE wiki_pages SET locked = (locked IN ('Y', 1))");
$database->execute("UPDATE wiki_pages SET locked = (locked IN ('Y', 1))");
}
if ($d == DatabaseDriver::PGSQL) {
$database->execute("ALTER TABLE wiki_pages ADD COLUMN locked_b BOOLEAN DEFAULT FALSE NOT NULL");