/[drupal]/contributions/modules/monument/monument_image.install
ViewVC logotype

Contents of /contributions/modules/monument/monument_image.install

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


Revision 1.1 - (show annotations) (download) (as text)
Sat Dec 30 18:46:54 2006 UTC (2 years, 10 months ago) by grunthus
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-php
Adding .install files
1 <?php
2
3 /**
4 * Implementation of hook_install().
5 */
6 function monument_image_install() {
7 switch ($GLOBALS['db_type']) {
8 case 'mysqli':
9 case 'mysql':
10 db_query("CREATE TABLE {monument_image} (
11 nid int(10) unsigned NOT NULL default '0',
12 mid tinyint(3) unsigned zerofill NOT NULL default '000' COMMENT 'Parent monument ID',
13 taken_date int(11) unsigned default '0',
14 img_loc tinyint(3) unsigned NOT NULL default '0',
15 face_bearing smallint(3) unsigned zerofill NOT NULL default '999',
16 KEY nid (nid)
17 ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
18 break;
19
20 case 'pgsql':
21 die("No PostgreSQL installer. Please contribute one");
22 break;
23 }
24 }

  ViewVC Help
Powered by ViewVC 1.1.2