function ad_text_schema in Advertisement 6.3
Same name and namespace in other branches
- 6 text/ad_text.install \ad_text_schema()
- 6.2 text/ad_text.install \ad_text_schema()
- 7 text/ad_text.install \ad_text_schema()
Implementation of hook_schema().
File
- text/
ad_text.install, line 14 - Ad_text module database schema.
Code
function ad_text_schema() {
$schema['ad_text'] = array(
'description' => 'The ad_text table stores sources of text ads.',
'fields' => array(
'aid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
'url' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
'adheader' => array(
'type' => 'varchar',
'length' => '255',
'not null' => TRUE,
'default' => '',
),
'adbody' => array(
'type' => 'text',
'not null' => FALSE,
),
),
'primary key' => array(
'aid',
),
);
return $schema;
}