mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
FIX: Fixes #64 by the addition on of the USING clause.
This commit is contained in:
parent
29a2a06f41
commit
45233e4e74
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user