mostly postgres doesn't need migrating
This commit is contained in:
parent
73022f06dd
commit
ea29e29a06
@ -373,7 +373,7 @@ class Database
|
|||||||
# text, so we can in-place replace a char with a bool
|
# text, so we can in-place replace a char with a bool
|
||||||
$this->execute("UPDATE $table SET $column = ($column IN ('Y', 1))");
|
$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("ALTER TABLE $table ADD COLUMN ${column}_b BOOLEAN DEFAULT FALSE NOT NULL");
|
||||||
$this->execute("UPDATE $table SET ${column}_b = ($column = 'Y')");
|
$this->execute("UPDATE $table SET ${column}_b = ($column = 'Y')");
|
||||||
$this->execute("ALTER TABLE $table DROP COLUMN $column");
|
$this->execute("ALTER TABLE $table DROP COLUMN $column");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user