function pardot_schema in Pardot Integration 7.2
Same name and namespace in other branches
- 6 pardot.install \pardot_schema()
- 7 pardot.install \pardot_schema()
Implements hook_schema().
File
- ./
pardot.install, line 10 - Install/uninstall taks and updates.
Code
function pardot_schema() {
$schema = array();
$schema['pardot_scoring'] = array(
'description' => 'Scoring settings',
'primary key' => array(
'scoring_id',
),
'indexes' => array(),
'fields' => array(
'scoring_id' => array(
// Internal unique identifier.
'type' => 'serial',
'size' => 'normal',
'unsigned' => TRUE,
'not null' => TRUE,
),
'path' => array(
'type' => 'varchar',
'size' => 'normal',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'score' => array(
'description' => 'Pardot score for a given page',
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
'unsigned' => FALSE,
),
),
);
$schema['pardot_campaign'] = array(
'description' => 'Campaign settings',
'indexes' => array(),
'fields' => array(
'campaign_id' => array(
'description' => 'Pardot campaign identifier.',
// Internal unique identifier.
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
),
'name' => array(
// Form Posted status.
'description' => 'Human readable campaign name',
'type' => 'varchar',
'size' => 'normal',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'paths' => array(
'description' => 'A list of paths associated with the campaign',
'type' => 'text',
'size' => 'normal',
/* 16KB in mySql */
'not null' => TRUE,
'serialize' => FALSE,
),
),
);
return $schema;
}