Schema::$defaultSchema

Same name in this branch
  1. 8.9.x core/lib/Drupal/Core/Database/Driver/sqlite/Schema.php \Drupal\Core\Database\Driver\sqlite\Schema::defaultSchema
Same name in other branches
  1. 9 core/modules/sqlite/src/Driver/Database/sqlite/Schema.php \Drupal\sqlite\Driver\Database\sqlite\Schema::defaultSchema
  2. 9 core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::defaultSchema
  3. 10 core/modules/sqlite/src/Driver/Database/sqlite/Schema.php \Drupal\sqlite\Driver\Database\sqlite\Schema::defaultSchema
  4. 10 core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::defaultSchema
  5. 11.x core/modules/sqlite/src/Driver/Database/sqlite/Schema.php \Drupal\sqlite\Driver\Database\sqlite\Schema::defaultSchema
  6. 11.x core/lib/Drupal/Core/Database/Schema.php \Drupal\Core\Database\Schema::defaultSchema

Definition of prefixInfo array structure.

Rather than redefining DatabaseSchema::getPrefixInfo() for each driver, by defining the defaultSchema variable only MySQL has to re-write the method.

Type: string

See also

DatabaseSchema::getPrefixInfo()

File

core/lib/Drupal/Core/Database/Schema.php, line 37

Class

Schema
Provides a base implementation for Database Schema.

Namespace

Drupal\Core\Database

Code

protected $defaultSchema = 'public';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.