You are here

hosting_quota.install in Hosting 7.4

Same filename and directory in other branches
  1. 6.2 quota/hosting_quota.install
  2. 7.3 quota/hosting_quota.install

Define the database schema for the hosting_quota module.

File

quota/hosting_quota.install
View 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

Namesort descending Description
hosting_quota_schema Implements hook_schema().