/[drupal]/contributions/modules/mail_edit/mail_edit.install
ViewVC logotype

Contents of /contributions/modules/mail_edit/mail_edit.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Wed Jul 2 08:41:23 2008 UTC (16 months, 3 weeks ago) by litwol
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +49 -23 lines
File MIME type: text/x-php
initial d6 port: complete rewrite
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 }

  ViewVC Help
Powered by ViewVC 1.1.2