| 1 |
<?php
|
| 2 |
// $Id: mail_edit.install,v 1.1 2007/12/05 16:46:27 chx Exp $
|
| 3 |
|
| 4 |
function mail_edit_install() {
|
| 5 |
drupal_install_schema('mail_edit');
|
| 6 |
}
|
| 7 |
|
| 8 |
function mail_edit_uninstall() {
|
| 9 |
drupal_uninstall_schema('mail_edit');
|
| 10 |
}
|
| 11 |
|
| 12 |
|
| 13 |
function mail_edit_schema() {
|
| 14 |
|
| 15 |
$schema['mail_edit'] = array(
|
| 16 |
'description' => t(''),
|
| 17 |
'fields' => array(
|
| 18 |
'description' => array(
|
| 19 |
'type' => 'varchar',
|
| 20 |
'length' => '255',
|
| 21 |
'not null' => TRUE,
|
| 22 |
'description' => t(''),
|
| 23 |
),
|
| 24 |
'subject' => array(
|
| 25 |
'type' => 'varchar',
|
| 26 |
'length' => '255',
|
| 27 |
'not null' => TRUE,
|
| 28 |
'description' => t(''),
|
| 29 |
),
|
| 30 |
'mailkey' => array(
|
| 31 |
'type' => 'varchar',
|
| 32 |
'length' => '255',
|
| 33 |
'not null' => TRUE,
|
| 34 |
'description' => t(''),
|
| 35 |
),
|
| 36 |
'language' => array(
|
| 37 |
'type' => 'varchar',
|
| 38 |
'length' => '10',
|
| 39 |
'not null' => TRUE,
|
| 40 |
'description' => t(''),
|
| 41 |
),
|
| 42 |
'body' => array(
|
| 43 |
'type' => 'text',
|
| 44 |
'size' => 'normal',
|
| 45 |
'description' => t(''),
|
| 46 |
),
|
| 47 |
),
|
| 48 |
'indexes' => array(
|
| 49 |
'`unique entry`' => array('`mailkey`', '`language`'),
|
| 50 |
'`mailkey`' => array('`mailkey`'),
|
| 51 |
'`language`' => array('`language`'),
|
| 52 |
),
|
| 53 |
);
|
| 54 |
|
| 55 |
return $schema;
|
| 56 |
}
|