function _serial_get_table_schema in Serial Field 6
Same name and namespace in other branches
- 7 serial.inc \_serial_get_table_schema()
Gets the schema of the assistant tables for generating serial values.
Return value
the assistant table schema.
2 calls to _serial_get_table_schema()
- serial_schema in ./
serial.install - Implementation of hook_schema().
- _serial_create_table in ./
serial.inc - Creates an assistant serial table for a new created field.
File
- ./
serial.inc, line 89 - Internal functions for the Serial module.
Code
function _serial_get_table_schema() {
return array(
'fields' => array(
'sid' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'The atomic serial field.',
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => 'Id of the owner node.',
),
),
'primary key' => array(
'sid',
),
'unique keys' => array(
'nid' => array(
'nid',
),
),
);
}