* \Drupal\Core\Database\Database::setActiveConnection().
*/
function db_set_active($key = 'default') {
+ @trigger_error('db_set_active() is deprecated in Drupal 8.0.x and will be removed before Drupal 9.0.0. Use \Drupal\Core\Database\Database::setActiveConnection() instead. See https://www.drupal.org/node/2944084.', E_USER_DEPRECATED);
return Database::setActiveConnection($key);
}
* @see \Drupal\Core\Database\Schema::tableExists()
*/
function db_table_exists($table) {
+ @trigger_error(
+ 'db_table_exists() is deprecated in Drupal 8.0.x and will be removed before Drupal 9.0.0. Use $injected_database->schema()->tableExists($table) instead. See https://www.drupal.org/node/2947929.',
+ E_USER_DEPRECATED
+ );
+
return Database::getConnection()->schema()->tableExists($table);
}
* @see \Drupal\Core\Database\Schema::dropTable()
*/
function db_drop_table($table) {
+ @trigger_error('db_drop_table() is deprecated in Drupal 8.0.x and will be removed before Drupal 9.0.0. Use \Drupal\Core\Database\Database::getConnection()->schema()->dropTable() instead. See https://www.drupal.org/node/2987737', E_USER_DEPRECATED);
return Database::getConnection()->schema()->dropTable($table);
}