function _serial_get_table_schema in Serial Field 7
Same name and namespace in other branches
- 6 serial.inc \_serial_get_table_schema()
Gets the schema of the assistant tables for generating serial values.
Return value
array Assistant table schema.
3 calls to _serial_get_table_schema()
- serial_schema in ./
serial.install - Implements hook_schema().
- serial_update_7130 in ./
serial.install - Upgrade path.
- _serial_create_table in ./
serial.inc - Creates an assistant serial table for a new created field.
File
- ./
serial.inc, line 113 - Internal functions for the Serial module.
Code
function _serial_get_table_schema() {
return array(
'fields' => array(
'sid' => array(
'type' => SERIAL_FIELD_TYPE,
'not null' => TRUE,
'unsigned' => TRUE,
'description' => 'The atomic serial field.',
),
'uniqid' => array(
'type' => 'varchar',
'length' => 23,
'default' => '',
'not null' => TRUE,
'description' => 'Unique temporary allocation Id.',
),
),
'primary key' => array(
'sid',
),
'unique keys' => array(
'uniqid' => array(
'uniqid',
),
),
);
}