hosting_quota.install in Hosting 7.3
Same filename and directory in other branches
Define the database schema for the hosting_quota module.
File
quota/hosting_quota.installView source
<?php
/**
* @file
* Define the database schema for the hosting_quota module.
*
*/
/**
* Implements hook_schema().
*/
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;
}
Functions
Name![]() |
Description |
---|---|
hosting_quota_schema | Implements hook_schema(). |