Commit b9ada572 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #226 from bobdenotter/master

Fix for decimal fields with precision.
parents 2802d88d 1bd39f36
......@@ -163,7 +163,10 @@ class SqliteSchemaManager extends AbstractSchemaManager
case 'decimal':
case 'numeric':
if (isset($tableColumn['length'])) {
list($precision, $scale) = array_map('trim', explode(', ', $tableColumn['length']));
if (strpos($tableColumn['length'], ',') === false) {
$tableColumn['length'] .= ",0";
}
list($precision, $scale) = array_map('trim', explode(',', $tableColumn['length']));
}
$length = null;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment