Commit 4a6c6d83 authored by catch's avatar catch
Browse files

Issue #2670360 by edurenye: Add BC layer in installSchema to support url_alias

parent 563cbe96
......@@ -429,10 +429,18 @@ protected function installSchema($module, $tables) {
if (!$this->container->get('module_handler')->moduleExists($module)) {
throw new \RuntimeException("'$module' module is not enabled");
$tables = (array) $tables;
foreach ($tables as $table) {
$schema = drupal_get_module_schema($module, $table);
if (empty($schema)) {
// BC layer to avoid some contrib tests to fail.
// @todo Remove the BC layer before 8.1.x release.
// @see
// @see
if ($module == 'system') {
throw new \RuntimeException("Unknown '$table' table schema in '$module' module.");
$this->container->get('database')->schema()->createTable($table, $schema);
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