Commit 8991d8d2 authored by Benjamin Eberlei's avatar Benjamin Eberlei

[DBAL-101] Fix bug when length is not defined in SQLite Schema manager.

parent adf78836
......@@ -155,7 +155,9 @@ class SqliteSchemaManager extends AbstractSchemaManager
case 'real':
case 'decimal':
case 'numeric':
list($precision, $scale) = array_map('trim', explode(', ', $tableColumn['length']));
if (isset($tableColumn['length'])) {
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