You are here

function mailchimp_schema in Mailchimp 7

Same name and namespace in other branches
  1. 6.2 mailchimp.install \mailchimp_schema()
  2. 7.5 mailchimp.install \mailchimp_schema()
  3. 7.2 mailchimp.install \mailchimp_schema()
  4. 7.3 mailchimp.install \mailchimp_schema()
  5. 7.4 mailchimp.install \mailchimp_schema()

Implements hook_schema().

File

./mailchimp.install, line 12
Install, update and uninstall functions for the mailchimp module.

Code

function mailchimp_schema() {

  // A table of uids
  // @todo If we decide to also do deletes in cron then we can add mail here?
  $schema['mailchimp_user'] = array(
    'fields' => array(
      'uid' => array(
        'type' => 'int',
      ),
      'status' => array(
        'type' => 'varchar',
        'length' => 15,
      ),
    ),
    'primary key' => array(
      'uid',
    ),
  );
  return $schema;
}