function _connector_info_schema_1 in Connector 7
Same name and namespace in other branches
- 6 connector.install \_connector_info_schema_1()
1 call to _connector_info_schema_1()
- connector_schema in ./
connector.install - Implements hook_schema().
File
- ./
connector.install, line 17 - Database and updating for the connector module
Code
function _connector_info_schema_1() {
return array(
'fields' => array(
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
'description' => 'The id of the user',
),
'type' => array(
'type' => 'varchar',
'length' => 80,
'not null' => TRUE,
'default' => '',
'description' => "The type of property - eg. 'real name'",
),
'value' => array(
'type' => 'varchar',
'length' => 80,
'not null' => FALSE,
'default' => '',
'description' => 'The value of the property',
),
'max_life' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'default' => 0,
'description' => 'The Unix timestamp when info latest needs to be refreshed',
),
'failure_level' => array(
'type' => 'int',
'size' => 'tiny',
'unsigned' => TRUE,
'not null' => FALSE,
'default' => 0,
'description' => 'The level of failure',
),
),
'primary key' => array(
'uid',
'type',
),
'indexes' => array(
'refresh' => array(
'type',
'max_life',
),
'max_life' => array(
'max_life',
),
),
);
}