You are here

function hosting_db_server_schema in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 db_server/hosting_db_server.install \hosting_db_server_schema()
  2. 7.3 db_server/hosting_db_server.install \hosting_db_server_schema()

Implementation of hook_schema().

File

db_server/hosting_db_server.install, line 10
Install, update and uninstall for the database server module.

Code

function hosting_db_server_schema() {
  $schema['hosting_db_server'] = 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,
      ),
      'db_user' => array(
        'type' => 'text',
        'size' => 'big',
        'not null' => TRUE,
      ),
      'db_passwd' => array(
        'type' => 'text',
        'size' => 'big',
        'not null' => TRUE,
      ),
    ),
    'primary key' => array(
      'vid',
    ),
  );
  return $schema;
}