function htaccess_schema in Htaccess 8.2
Same name and namespace in other branches
- 7.2 htaccess.install \htaccess_schema()
File
- ./
htaccess.install, line 12 - Htaccess module install file.
Code
function htaccess_schema() {
$schema['htaccess'] = array(
'description' => 'The table for htaccess.',
'fields' => array(
'id' => array(
'description' => t('The unique identifier for a htaccess.'),
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
),
'name' => array(
'description' => t('The profile name of the htaccess.'),
'type' => 'text',
'not null' => TRUE,
),
'description' => array(
'description' => t('The description of the htaccess.'),
'type' => 'text',
),
'htaccess' => array(
'description' => t('The htaccess rules generated.'),
'type' => 'text',
'not null' => TRUE,
),
'deployed' => array(
'description' => t('Indicates the current htaccess used.'),
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
),
'created' => array(
'description' => t('The created date of the generated htaccess rules.'),
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
'default' => 0,
),
),
'indexes' => array(
'htaccess_created' => array(
'created',
),
),
'unique keys' => array(
'id' => array(
'id',
),
),
'primary key' => array(
'id',
),
);
return $schema;
}