/[drupal]/contributions/modules/phpbb2drupal/phpbb2privatemsg.install
ViewVC logotype

Contents of /contributions/modules/phpbb2drupal/phpbb2privatemsg.install

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


Revision 1.1 - (show annotations) (download) (as text)
Sun May 17 02:01:56 2009 UTC (6 months, 1 week ago) by nbz
Branch: MAIN
CVS Tags: DRUPAL-6--2-0-BETA3, DRUPAL-6--2-1, DRUPAL-6--2-0, HEAD
File MIME type: text/x-php
#431820 and #395574 - fix privatemsg import to correct threading, and correctly import read, deleted data.
1 <?php
2 // $Id:$
3 function phpbb2privatemsg_schema() {
4 $schema['phpbb2privatemsg'] = array(
5 'description' => t('Maps phpBB forum forum_id to Drupal taxonomy tid.'),
6 'fields' => array(
7 'mid' => array('type' => 'int', 'unsigned' => TRUE, 'size' => 'small', 'not null' => TRUE, 'default' => 0),
8 'thread_id' => array('type' => 'int', 'unsigned' => TRUE, 'size' => 'small', 'not null' => TRUE, 'default' => 0),
9 'msg_id' => array('type' => 'int', 'unsigned' => TRUE, 'size' => 'small', 'not null' => TRUE, 'default' => 0),
10 ),
11 'primary key' => array('mid'),
12 );
13
14 return $schema;
15 }
16
17 function phpbb2privatemsg_install() {
18 // Create tables.
19 drupal_install_schema('phpbb2privatemsg');
20 }
21
22 function phpbb2privatemsg_uninstall() {
23 variable_del('phpbb2privatemsg_import_successful');
24 drupal_uninstall_schema('phpbb2privatemsg');
25 }

  ViewVC Help
Powered by ViewVC 1.1.2