You are here

function ad_html_schema in Advertisement 6.3

Same name and namespace in other branches
  1. 6 html/ad_html.install \ad_html_schema()
  2. 6.2 html/ad_html.install \ad_html_schema()
  3. 7 html/ad_html.install \ad_html_schema()

Implementation of hook_schema().

File

html/ad_html.install, line 14
Ad_html module database schema.

Code

function ad_html_schema() {
  $schema['ad_html'] = array(
    'description' => 'The ad_html table stores HTML code of html ads.',
    'fields' => array(
      'aid' => array(
        'type' => 'int',
        'unsigned' => TRUE,
        'not null' => TRUE,
        'default' => 0,
      ),
      'html' => array(
        'type' => 'text',
        'not null' => FALSE,
      ),
    ),
    'primary key' => array(
      'aid',
    ),
  );
  return $schema;
}