function footable_schema in FooTable 7.2
Implements hook_schema().
File
- ./
footable.install, line 52 - Install, update, and uninstall functions for the FooTable module.
Code
function footable_schema() {
$schema['footable_breakpoint'] = array(
'description' => 'Table storing FooTable breakpoints.',
'export' => array(
'key' => 'machine_name',
'key name' => 'Machine name',
'primary key' => 'id',
'identifier' => 'footable_breakpoint',
'admin_title' => 'name',
'default hook' => 'default_footable_breakpoint',
'can disable' => TRUE,
'api' => array(
'owner' => 'footable',
'api' => 'footable_breakpoint',
'minimum_version' => 1,
'current_version' => 1,
),
),
'fields' => array(
'id' => array(
'type' => 'serial',
'not null' => TRUE,
'description' => 'The internal identifier of a FooTable breakpoint',
'no export' => TRUE,
),
'machine_name' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'A machine readable name of a FooTable breakpoint.',
),
'name' => array(
'type' => 'varchar',
'length' => '255',
'description' => 'A human readable name of a FooTable breakpoint.',
),
'breakpoint' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'FooTable breakpoint at which the column should be hidden.',
),
),
'primary key' => array(
'id',
),
'unique keys' => array(
'machine_name' => array(
'machine_name',
),
),
);
return $schema;
}