From ea29e29a06d77cb5069ed6a2f23faa7bec51119b Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 26 Oct 2020 23:38:52 +0000 Subject: [PATCH] mostly postgres doesn't need migrating --- core/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/database.php b/core/database.php index f4431aaa..ccbe169a 100644 --- a/core/database.php +++ b/core/database.php @@ -373,7 +373,7 @@ class Database # text, so we can in-place replace a char with a bool $this->execute("UPDATE $table SET $column = ($column IN ('Y', 1))"); } - if ($d == DatabaseDriver::PGSQL) { + if ($d == DatabaseDriver::PGSQL && $include_postgres) { $this->execute("ALTER TABLE $table ADD COLUMN ${column}_b BOOLEAN DEFAULT FALSE NOT NULL"); $this->execute("UPDATE $table SET ${column}_b = ($column = 'Y')"); $this->execute("ALTER TABLE $table DROP COLUMN $column");