location_fax.install in Location 5
File
contrib/location_fax/location_fax.install
View source
<?php
function location_fax_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("\n CREATE TABLE {location_fax} (\n lid int(10) unsigned NOT NULL default '0',\n fax varchar(31) default NULL,\n PRIMARY KEY (lid)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */;\n ");
break;
case 'pgsql':
db_query("\n CREATE TABLE {location_fax} (\n lid int NOT NULL default '0' CHECK (eid >= 0),\n fax varchar(31) default NULL,\n PRIMARY KEY (lid)\n ) /*!40100 DEFAULT CHARACTER SET utf8 */;\n ");
break;
}
drupal_set_message(t('Installed tables for module location_fax'));
}