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

Contents of /contributions/modules/provisionator/provisionator.install

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


Revision 1.2 - (show annotations) (download) (as text)
Tue Jan 9 05:40:30 2007 UTC (2 years, 10 months ago) by dnorman
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +20 -11 lines
File MIME type: text/x-php
Fixing(?) .install, some tweaks, and the first part of implementing Views hooks.
1 <?php
2
3 function provisionator_install() {
4 switch ($GLOBALS['db_type']) {
5 case 'mysql':
6 case 'mysqli':
7 db_query("
8 CREATE TABLE `provisionatorclient` (
9 `nid` int(10) unsigned NOT NULL default '0',
10 `domainprefix` longtext,
11 `symlinkpath` longtext,
12 `dbprefix` varchar(20) default NULL,
13 `apachetargetdir` longtext,
14 PRIMARY KEY (`nid`)
15 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
16
17 CREATE TABLE `provisionatorsite` (
18 `nid` int(10) unsigned NOT NULL default '0',
19 `shortname` longtext,
20 `sitestatus` longtext,
21 `fullurl` longtext,
22 `clientid` int(10) default '0',
23 `profile` longtext,
24 PRIMARY KEY (`nid`)
25 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
26 ");
27 break;
28 case 'pgsql':
29 break;
30 }
31 }
32
33 ?>

  ViewVC Help
Powered by ViewVC 1.1.2