diff --git a/ext/wiki/main.php b/ext/wiki/main.php index f882aae1..5e3dce9f 100644 --- a/ext/wiki/main.php +++ b/ext/wiki/main.php @@ -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");