You are here

function ad_external_schema in Advertisement 6.3

Same name and namespace in other branches
  1. 6 external/ad_external.install \ad_external_schema()
  2. 6.2 external/ad_external.install \ad_external_schema()
  3. 7 external/ad_external.install \ad_external_schema()

Implementation of hook_schema().

File

external/ad_external.install, line 14
Ad_external module database schema.

Code

function ad_external_schema() {
  $schema['ad_external'] = array(
    'description' => 'The ad_external table stores source URLs for external ads.',
    'fields' => array(
      'aid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'url' => array(
        'type' => 'varchar',
        'length' => '255',
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array(
      'aid',
    ),
  );
  return $schema;
}