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

Contents of /contributions/modules/flag_content/flag_content.install

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


Revision 1.6 - (show annotations) (download) (as text)
Sat Feb 2 19:39:01 2008 UTC (21 months, 3 weeks ago) by kbahey
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
Changes since 1.5: +26 -48 lines
File MIME type: text/x-php
#217128 by cfuller12, some tweaking by kbahey. Ported to Drupal 6,
1 <?php
2
3 /**
4 * Implementation of hook_install()
5 */
6
7 function flag_content_install() {
8 drupal_install_schema('flag_content');
9 }
10
11 /**
12 * Implementation of hook_schema()
13 */
14
15 function flag_content_schema() {
16 $schema['flag_content'] = array(
17 'fields' => array(
18 'fid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE, 'defualt' => 0),
19 'eid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'defualt' => 0),
20 'uid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'defualt' => 0),
21 'type' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 10, 'default' => ''),
22 'timestamp' => array('type' => 'int', 'unsigned' => TRUE),
23 ),
24 'indexes' => array('eid' => array('eid'), 'type' => array('type')),
25 'primary key' => array('fid'),
26 );
27 return $schema;
28 }
29
30 /**
31 * Implementation of hook_uninstall()
32 */
33 function flag_content_uninstall() {
34 drupal_unintstall_schema('flag_content');
35 }

  ViewVC Help
Powered by ViewVC 1.1.2