hosting_quota.install in Hosting 6.2
File
quota/hosting_quota.install
View source
<?php
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;
}
function hosting_quota_install() {
drupal_install_schema('hosting_quota');
}
function hosting_quota_uninstall() {
drupal_uninstall_schema('hosting_quota');
}