function cer_schema in Corresponding Entity References 7.3
Same name and namespace in other branches
- 7 cer.install \cer_schema()
- 7.2 cer.install \cer_schema()
Implements hook_schema().
1 call to cer_schema()
- cer_update_7005 in ./
cer.install - Creates the {cer_preset} table to store CerPreset entities, and rebuilds legacy presets.
File
- ./
cer.install, line 11 - Install file providing corresponding entity reference schema.
Code
function cer_schema() {
$schema = array();
// @see entity_exportable_schema_fields()
$schema['cer_preset'] = array(
'fields' => array(
'pid' => array(
'type' => 'serial',
'not null' => TRUE,
),
'identifier' => array(
'type' => 'text',
'size' => 'tiny',
'not null' => TRUE,
'description' => "The preset's machine-readable export identifier.",
),
'status' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0x1,
// ENTITY_CUSTOM
'description' => "The preset's exportable status.",
),
'module' => array(
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
'default' => 'cer',
'description' => 'The module, if any, which exports this preset.',
),
),
'primary key' => array(
'pid',
),
);
return $schema;
}