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

Contents of /contributions/modules/todolist/todolist.install

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


Revision 1.5 - (show annotations) (download) (as text)
Thu Nov 5 21:24:38 2009 UTC (3 weeks, 1 day ago) by marvil07
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +52 -43 lines
File MIME type: text/x-php
sync HEAD to DRUPAL-6--1 branch

now development is gonna take place on HEAD.. I mean better cvs use
1 <?php
2 // $Id: todolist.install,v 1.4.2.1 2009/01/10 08:53:48 marvil07 Exp $
3
4 /**
5 * @file
6 * todolist installation
7 */
8
9 /**
10 * Implementation of hook_schema().
11 */
12 function todolist_schema() {
13 $schema['todolist_task'] = array(
14 'description' => t('The base table for tasks.'),
15 'fields' => array(
16 'tid' => array(
17 'description' => t('The primary identifier for a task.'),
18 'type' => 'serial',
19 'unsigned' => TRUE,
20 'not null' => TRUE,
21 ),
22 'nid' => array(
23 'description' => t('A node identifier.'),
24 'type' => 'int',
25 'unsigned' => TRUE,
26 'not null' => TRUE,
27 ),
28 'sort' => array(
29 'description' => t('This field decide task order.'),
30 'type' => 'int',
31 'unsigned' => FALSE,
32 'not null' => TRUE,
33 ),
34 'status' => array(
35 'description' => t('The task status.'),
36 'type' => 'int',
37 'unsigned' => FALSE,
38 'not null' => TRUE,
39 ),
40 'task' => array(
41 'description' => t('The task content.'),
42 'type' => 'varchar',
43 'length' => 255,
44 'not null' => TRUE,
45 ),
46 ),
47 'primary key' => array('tid'),
48 );
49 return $schema;
50 }
51
52 /**
53 * Implementation of hook_install().
54 */
55 function todolist_install() {
56 drupal_install_schema('todolist');
57 }
58
59 /**
60 * Implementation of hook_uninstall().
61 */
62 function todolist_uninstall() {
63 drupal_uninstall_schema('todolist');
64 }

  ViewVC Help
Powered by ViewVC 1.1.2