function hosting_quota_schema in Hosting 6.2
Same name and namespace in other branches
- 7.4 quota/hosting_quota.install \hosting_quota_schema()
- 7.3 quota/hosting_quota.install \hosting_quota_schema()
Implementation of hook_schema().
File
- quota/
hosting_quota.install, line 7
Code
function hosting_quota_schema() {
$schema['hosting_client_quota'] = array(
'fields' => array(
'client' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'resource' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'value' => array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
),
'primary key' => array(
'client',
'resource',
),
);
return $schema;
}