Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / includes / database.inc
index d4cb593af6f93e0c4c63e0451c742657bca8531f..ad203e36c312a635728c2de3f8034b006633ac8e 100644 (file)
@@ -335,6 +335,7 @@ function db_transaction($name = NULL, array $options = []) {
  * \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);
 }
 
@@ -644,6 +645,11 @@ function db_index_exists($table, $name) {
  * @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);
 }
 
@@ -722,6 +728,7 @@ function db_rename_table($table, $new_name) {
  * @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);
 }