You are here

function hosting_web_cluster_schema in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 web_cluster/hosting_web_cluster.install \hosting_web_cluster_schema()
  2. 7.3 web_cluster/hosting_web_cluster.install \hosting_web_cluster_schema()

File

web_cluster/hosting_web_cluster.install, line 3

Code

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',
      ),
    ),
  );
}