comparison core/includes/schema.inc @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
128 * 128 *
129 * @param string $module 129 * @param string $module
130 * The module for which the tables will be removed. 130 * The module for which the tables will be removed.
131 */ 131 */
132 function drupal_uninstall_schema($module) { 132 function drupal_uninstall_schema($module) {
133 $schema = drupal_get_module_schema($module); 133 $tables = drupal_get_module_schema($module);
134 _drupal_schema_initialize($schema, $module, FALSE); 134 _drupal_schema_initialize($tables, $module, FALSE);
135 135 $schema = \Drupal::database()->schema();
136 foreach ($schema as $table) { 136 foreach ($tables as $table) {
137 if (db_table_exists($table['name'])) { 137 if ($schema->tableExists($table['name'])) {
138 db_drop_table($table['name']); 138 $schema->dropTable($table['name']);
139 } 139 }
140 } 140 }
141 } 141 }
142 142
143 /** 143 /**