Commit 472f3a57 authored by alexpott's avatar alexpott

Issue #2667574 by dagmar: sqlite/Schema::introspectSchema should throw the created exception

parent 0d1fb1be
......@@ -420,8 +420,12 @@ protected function alterTable($table, $old_schema, $new_schema, array $mapping =
*
* @param $table
* Name of the table.
*
* @return
* An array representing the schema, from drupal_get_schema().
*
* @throws \Exception
* If a column of the table could not be parsed.
*/
protected function introspectSchema($table) {
$mapped_fields = array_flip($this->getFieldTypeMap());
......@@ -459,7 +463,7 @@ protected function introspectSchema($table) {
}
}
else {
new \Exception("Unable to parse the column type " . $row->type);
throw new \Exception("Unable to parse the column type " . $row->type);
}
}
$indexes = array();
......
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