FIX: Fixes #64 by the addition on of the USING clause.

This commit is contained in:
Russell Michell 2017-07-26 08:04:48 +12:00
parent 29a2a06f41
commit 45233e4e74
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ class PostgreSQLSchemaManager extends DBSchemaManager
}
if (isset($matches[1])) {
$alterCol = "ALTER COLUMN \"$colName\" TYPE $matches[1]\n";
$alterCol = "ALTER COLUMN \"$colName\" TYPE $matches[1] USING \"$colName\"::$matches[1]\n";
// SET null / not null
if (!empty($matches[2])) {