Merge pull request #65 from phptek/issue/64

FIX: Fixes #64 by the addition on of the USING clause.
This commit is contained in:
Damian Mooyman 2017-07-26 16:35:38 +12:00 committed by GitHub
commit c3dbb76ef6

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])) {