You are here

function pardot_update_6005 in Pardot Integration 6

Add specific campaign per page support.

File

./pardot.install, line 328

Code

function pardot_update_6005() {
  $ret = array();
  $schema['pardot_campaign'] = array(
    'description' => t('Campaign settings'),
    'primary key' => array(
      'campaign_id',
    ),
    '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,
      ),
    ),
  );
  db_create_table($ret, 'pardot_campaign', $schema['pardot_campaign']);
  return $ret;
}