pg fixes
This commit is contained in:
parent
006c53f499
commit
89f5d5524f
1 changed files with 2 additions and 2 deletions
|
@ -155,8 +155,8 @@ class Wiki extends Extension
|
|||
$database->execute("ALTER TABLE 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 AFTER locked");
|
||||
$database->execute("UPDATE wiki_pages SET locked_b = (locked IN ('Y', 1))");
|
||||
$database->execute("ALTER TABLE wiki_pages ADD COLUMN locked_b BOOLEAN DEFAULT FALSE NOT NULL");
|
||||
$database->execute("UPDATE wiki_pages SET locked_b = (locked = 'Y')");
|
||||
$database->execute("ALTER TABLE wiki_pages DROP COLUMN locked");
|
||||
$database->execute("ALTER TABLE wiki_pages RENAME COLUMN locked_b TO locked");
|
||||
}
|
||||
|
|
Reference in a new issue