pgsql_test.install

Same filename in other branches
  1. 11.x core/modules/system/tests/modules/pgsql_test/pgsql_test.install

Install, update and uninstall functions for the pgsql_test module.

File

core/modules/system/tests/modules/pgsql_test/pgsql_test.install

View source
<?php


/**
 * @file
 * Install, update and uninstall functions for the pgsql_test module.
 */

/**
 * Implements hook_schema().
 */
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;
}

Functions

Title Deprecated Summary
pgsql_test_schema Implements hook_schema().

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