Same name and namespace in other branches
  1. 7.x modules/simpletest/tests/module_test.install \module_test_schema()
  2. 8.9.x core/modules/system/tests/modules/module_test/module_test.install \module_test_schema()
  3. 9 core/modules/system/tests/modules/module_test/module_test.install \module_test_schema()

Implements hook_schema().

1 call to module_test_schema()
module_test_install in core/modules/system/tests/modules/module_test/module_test.install
Implements hook_install().

File

core/modules/system/tests/modules/module_test/module_test.install, line 13
Install, update and uninstall functions for the module_test module.

Code

function module_test_schema() {
  $schema['module_test'] = [
    'description' => 'Dummy table to test the behavior of hook_schema() during module installation.',
    'fields' => [
      'data' => [
        'type' => 'varchar',
        'length' => 255,
        'not null' => TRUE,
        'default' => '',
        'description' => 'An example data column for the module.',
      ],
    ],
  ];
  return $schema;
}