Permalink
Browse files

Extra fix: Don't throw a notice, when length has no comma.

  • Loading branch information...
1 parent eb67796 commit 1bd39f360b5d81e589e2fa8088f5ad521cbd0e6c @bobdenotter bobdenotter committed Nov 19, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php
@@ -163,6 +163,9 @@ protected function _getPortableTableColumnDefinition($tableColumn)
case 'decimal':
case 'numeric':
if (isset($tableColumn['length'])) {
+ if (strpos($tableColumn['length'], ',') === false) {
+ $tableColumn['length'] .= ",0";
+ }
list($precision, $scale) = array_map('trim', explode(',', $tableColumn['length']));
}
$length = null;

0 comments on commit 1bd39f3

Please sign in to comment.