You are here

function hosting_server_update_6004 in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 server/hosting_server.install \hosting_server_update_6004()
  2. 7.3 server/hosting_server.install \hosting_server_update_6004()

Add the IP address table.

File

server/hosting_server.install, line 169

Code

function hosting_server_update_6004() {
  $return = array();

  // create the table so we can rename it.
  // retarded, i know.
  $schema = 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,
      ),
      'ip_address' => array(
        'type' => 'text',
        'size' => 'small',
        'not null' => TRUE,
      ),
    ),
    'indexes' => array(
      'vid' => array(
        'vid',
      ),
    ),
  );
  db_create_table($return, 'hosting_server_ip', $schema);
  return $return;
}