function system_schema

Same name and namespace in other branches
  1. 7.x modules/system/system.install \system_schema()
  2. 9 core/modules/system/system.install \system_schema()
  3. 8.9.x core/modules/system/system.install \system_schema()
  4. 10 core/modules/system/system.install \system_schema()

Implements hook_schema().

2 calls to system_schema()
install_begin_request in core/includes/install.core.inc
Begins an installation request, modifying the installation state as needed.
install_verify_database_ready in core/includes/install.core.inc
Verify that the database is ready (no existing Drupal installation).

File

core/modules/system/system.install, line 1600

Code

function system_schema() {
    // @deprecated The sequences table has been deprecated in drupal:10.2.0 and is
    // removed from drupal:12.0.0. See https://www.drupal.org/node/3220378.
    // @todo Remove sequences table in Drupal 12. See https://www.drupal.org/i/3335756
    $schema['sequences'] = [
        'description' => 'Stores IDs.',
        'fields' => [
            'value' => [
                'description' => 'The value of the sequence.',
                'type' => 'serial',
                'unsigned' => TRUE,
                'not null' => TRUE,
            ],
        ],
        'primary key' => [
            'value',
        ],
    ];
    return $schema;
}

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