function mailchimp_signup_schema in Mailchimp 7.4
Same name and namespace in other branches
- 7.5 modules/mailchimp_signup/mailchimp_signup.install \mailchimp_signup_schema()
- 7.3 modules/mailchimp_signup/mailchimp_signup.install \mailchimp_signup_schema()
Implements hook_schema().
File
- modules/
mailchimp_signup/ mailchimp_signup.install, line 11 - Install, update and uninstall functions for the mailchimp_signup module.
Code
function mailchimp_signup_schema() {
$schema['mailchimp_signup'] = array(
'fields' => array(
'mcs_id' => array(
'type' => 'serial',
'not null' => TRUE,
'description' => 'Primary Key: Unique mailchimp_signup entity ID.',
),
'name' => array(
'description' => 'The machine-readable name of this mailchimp_signup.',
'type' => 'varchar',
'length' => 32,
'not null' => TRUE,
),
'mc_lists' => array(
'type' => 'blob',
'not null' => TRUE,
'size' => 'big',
'serialize' => TRUE,
'description' => 'A serialized array of list IDs with list-specific configuration.',
),
'mode' => array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
'size' => 'tiny',
'description' => 'Signifies the display mode for this signup form.',
),
'title' => array(
'type' => 'varchar',
'length' => 32,
'description' => 'The {mailchimp_lists}.label of this mailchimp_list.',
'not null' => TRUE,
'default' => '',
),
'settings' => array(
'type' => 'blob',
'not null' => FALSE,
'size' => 'big',
'serialize' => TRUE,
'description' => 'A serialized object that stores the settings for the specific list.',
),
'status' => array(
'type' => 'int',
'not null' => TRUE,
// Set the default to ENTITY_CUSTOM without using the constant as it is
// not safe to use it at this point.
'default' => 0x1,
'size' => 'tiny',
'description' => 'The exportable status of the entity.',
),
'module' => array(
'description' => 'The name of the providing module if the entity has been defined in code.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'primary key' => array(
'mcs_id',
),
'unique key' => array(
'name',
),
'indexes' => array(
'name' => array(
'name',
),
),
);
return $schema;
}