/[drupal]/contributions/modules/ubercart/ca/ca.install
ViewVC logotype

Contents of /contributions/modules/ubercart/ca/ca.install

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


Revision 1.1 - (show annotations) (download) (as text)
Thu Jul 10 12:40:55 2008 UTC (16 months, 2 weeks ago) by islandusurper
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--2
File MIME type: text/x-php
Begin the Ubercart 6.x-2.x branch.
1 <?php
2 // $Id$
3
4 function ca_schema() {
5 $schema = array();
6
7 $schema['ca_predicates'] = array(
8 'fields' => array(
9 'pid' => array(
10 'type' => 'varchar',
11 'length' => 255,
12 'not null' => TRUE,
13 'default' => '',
14 ),
15 'title' => array(
16 'type' => 'varchar',
17 'length' => 255,
18 'not null' => TRUE,
19 'default' => '',
20 ),
21 'description' => array(
22 'type' => 'text',
23 ),
24 'class' => array(
25 'type' => 'varchar',
26 'length' => 255,
27 'not null' => TRUE,
28 'default' => '',
29 ),
30 'status' => array(
31 'type' => 'int',
32 'size' => 'tiny',
33 'unsigned' => TRUE,
34 'not null' => TRUE,
35 'default' => 0,
36 ),
37 'weight' => array(
38 'type' => 'int',
39 'size' => 'small',
40 'not null' => TRUE,
41 'default' => 0,
42 ),
43 'uid' => array(
44 'type' => 'int',
45 'unsigned' => TRUE,
46 'not null' => TRUE,
47 'default' => 0,
48 ),
49 'ca_trigger' => array(
50 'type' => 'varchar',
51 'length' => 255,
52 'not null' => TRUE,
53 'default' => '',
54 ),
55 'conditions' => array(
56 'type' => 'text',
57 'size' => 'big',
58 ),
59 'actions' => array(
60 'type' => 'text',
61 'size' => 'big',
62 ),
63 'created' => array(
64 'type' => 'int',
65 'not null' => TRUE,
66 'default' => 0,
67 ),
68 'modified' => array(
69 'type' => 'int',
70 'not null' => TRUE,
71 'default' => 0,
72 ),
73 ),
74 'indexes' => array(
75 'ca_predicates_class' => array('class'),
76 'ca_predicates_status' => array('status'),
77 'ca_predicates_ca_trigger' => array('ca_trigger'),
78 ),
79 'primary key' => array('pid'),
80 );
81
82 return $schema;
83 }
84
85 function ca_install() {
86 drupal_install_schema('ca');
87 }
88
89 function ca_uninstall() {
90 drupal_uninstall_schema('ca');
91 }

  ViewVC Help
Powered by ViewVC 1.1.2