function pathauto_persist_schema in Pathauto Persistent State 7
Same name and namespace in other branches
- 6 pathauto_persist.install \pathauto_persist_schema()
Implements hook_schema().
File
- ./
pathauto_persist.install, line 6
Code
function pathauto_persist_schema() {
$schema['pathauto_persist'] = array(
'description' => '',
'fields' => array(
'entity_type' => array(
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
'description' => 'An entity type.',
),
'entity_id' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'An entity ID.',
),
'pathauto' => array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
'description' => 'The automatic alias status of the entity.',
),
),
'primary key' => array(
'entity_type',
'entity_id',
),
);
return $schema;
}