You are here

function hosting_site_data_schema in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 example/site_data/hosting_site_data.install \hosting_site_data_schema()
  2. 7.3 example/site_data/hosting_site_data.install \hosting_site_data_schema()

Implementation of hook_schema().

File

example/site_data/hosting_site_data.install, line 6

Code

function hosting_site_data_schema() {
  $schema['hosting_site_data'] = array(
    'fields' => array(
      'vid' => array(
        'type' => 'int',
        'not null' => TRUE,
        'default' => 0,
      ),
      'nid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'site_data' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
      ),
    ),
    'indexes' => array(
      'vid' => array(
        'vid',
      ),
    ),
  );
  return $schema;
}