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

Contents of /contributions/modules/custom_review/custom_review.install

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


Revision 1.4 - (show annotations) (download) (as text)
Sun Oct 12 16:15:41 2008 UTC (13 months, 2 weeks ago) by striky2
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-ALPHA1, HEAD
Changes since 1.3: +57 -38 lines
File MIME type: text/x-php
migration onto Drupal 6
1 <?php
2 // $Id$
3
4
5 function custom_review_schema() {
6 $schema['custom_reviews'] = array(
7
8
9 'fields' => array(
10 'rid' => array(
11 'type' => 'int',
12 'unsigned' => TRUE,
13 'not null' => TRUE,
14 'default' => 0,
15 'description' => t('Primary Key: Unique term ID.'),
16 ),
17
18 'nid' => array(
19 'type' => 'int',
20 'unsigned' => TRUE,
21 'not null' => TRUE,
22 'default' => 0,
23 ),
24 ),
25 'primary key' => array('rid'),
26
27
28 );
29
30 $schema['custom_review_types'] = array(
31 'fields' => array(
32 'reviewer_node_type' => array(
33 'type' => 'varchar',
34 'length' => 32,
35 'not null' => TRUE,
36 'default' => '',
37 'description' => t('The term name.'),
38 ),
39
40 'reviewed_node_type' => array(
41 'type' => 'varchar',
42 'length' => 32,
43 'not null' => TRUE,
44 'default' => '',
45 'description' => t('The term name.'),
46
47
48 ),
49 ),
50 'primary key' => array('reviewer_node_type', 'reviewed_node_type'),
51 );
52 return $schema;
53 }
54
55 function custom_review_install() {
56 // Create my tables.
57 drupal_install_schema('custom_review');
58 }
59
60 function custom_review_uninstall() {
61 // Drop my tables.
62 drupal_uninstall_schema('custom_review');
63 }

  ViewVC Help
Powered by ViewVC 1.1.2