schema_test.install in Schema 8
Same filename and directory in other branches
File
tests/schema_test/schema_test.installView source
<?php
/**
* Implements hook_schema().
*/
function schema_test_schema() {
$schema['schema_test_1'] = array(
'fields' => array(
'fid' => array(
'type' => 'int',
'not null' => TRUE,
),
'destid' => array(
'type' => 'int',
'not null' => TRUE,
),
),
);
return $schema;
}
/**
* Implements hook_schema_alter().
*/
function schema_test_schema_alter(&$schema) {
$alter = variable_get('schema_test_schema_alter', array());
$schema = drupal_array_merge_deep($schema, $alter);
}
Functions
Name | Description |
---|---|
schema_test_schema | Implements hook_schema(). |
schema_test_schema_alter | Implements hook_schema_alter(). |