hosting_web_cluster.install in Hosting 7.3
Same filename and directory in other branches
Define database schema for the hosting_web_cluster module.
File
web_cluster/hosting_web_cluster.installView source
<?php
/**
* @file
* Define database schema for the hosting_web_cluster module.
*
*/
/**
* Implements hook_schema().
*/
function hosting_web_cluster_schema() {
return array(
'hosting_web_cluster' => array(
'fields' => array(
'vid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'web_server_nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'primary key' => array(
'vid',
'web_server_nid',
),
),
);
}
Functions
Name | Description |
---|---|
hosting_web_cluster_schema | Implements hook_schema(). |