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

Contents of /contributions/modules/civicluster/civicluster.install

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


Revision 1.1 - (show annotations) (download) (as text)
Tue Apr 10 04:57:40 2007 UTC (2 years, 7 months ago) by straussd
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-5
File MIME type: text/x-php
initial commits for civicluster and quickform
1 <?php
2
3 function civicluster_install()
4 {
5 switch ($GLOBALS['db_type'])
6 {
7 case 'mysql':
8 case 'mysqli':
9 db_query("CREATE TABLE `civicluster_separated` (
10 `contact_id` int(10) unsigned NOT NULL default '0',
11 `contact_id_2` int(10) unsigned NOT NULL default '0',
12 PRIMARY KEY (`contact_id`,`contact_id_2`),
13 KEY `contact_id_2` (`contact_id_2`)
14 ) ENGINE=InnoDB DEFAULT CHARSET=utf8;");
15 break;
16
17 case 'pgsql':
18 drupal_set_message('PostgreSQL is not currently supported.');
19 break;
20 }
21 }
22
23 function pressflow_preempt_uninstall()
24 {
25 db_query('DROP TABLE {civicluster_separated}');
26 }

  ViewVC Help
Powered by ViewVC 1.1.2