/[drupal]/contributions/modules/feedparser/feedenclosure.install
ViewVC logotype

Contents of /contributions/modules/feedparser/feedenclosure.install

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


Revision 1.4 - (show annotations) (download) (as text)
Mon Nov 20 21:34:05 2006 UTC (3 years ago) by budda
Branch: MAIN
CVS Tags: DRUPAL-5--0-1-dev, HEAD
Branch point for: DRUPAL-5, DRUPAL-4-7
Changes since 1.3: +2 -2 lines
File MIME type: text/x-php
Only install db table if it doesn't exist.
1 <?php
2 // $Id: feedenclosure.install,v 1.3 2006/11/19 23:28:38 budda Exp $
3
4 function feedenclosure_install() {
5 drupal_set_message('Installing feedenclosure table');
6 switch ($GLOBALS['db_type']) {
7 case 'mysqli':
8 case 'mysql':
9 db_query("
10 CREATE TABLE IF NOT EXISTS {aggregator_enclosure} (
11 `eid` int(11) NOT NULL default '0',
12 `iid` int(11) NOT NULL default '0',
13 `link` text NOT NULL,
14 `fid` int(11) NOT NULL default '0',
15 `length` int(11) default NULL,
16 `type` varchar(64) default NULL,
17 PRIMARY KEY (`eid`),
18 KEY `iid` (`iid`)
19 ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
20 break;
21 }
22 }
23 ?>

  ViewVC Help
Powered by ViewVC 1.1.2