From 7b3555eaa75a90ea3986b01cb8b7b08f05a082f4 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 26 Oct 2020 16:56:56 +0000 Subject: [PATCH] fff --- ext/wiki/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");