function pgsql_test_schema

Same name and namespace in other branches
  1. 10 core/modules/system/tests/modules/pgsql_test/pgsql_test.install \pgsql_test_schema()

Implements hook_schema().

File

core/modules/system/tests/modules/pgsql_test/pgsql_test.install, line 11

Code

function pgsql_test_schema() {
    $schema['pgsql_sequence_test'] = [
        'description' => 'Test sequence changes on pgsql driver.',
        'fields' => [
            'sequence_field' => [
                'type' => 'serial',
                'not null' => TRUE,
                'description' => 'Primary Key: A serial integer field.',
            ],
        ],
        'primary key' => [
            'sequence_field',
        ],
    ];
    return $schema;
}

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