/[drupal]/contributions/modules/feedapi/feedapi_feed/feedapi_feed.install
ViewVC logotype

Contents of /contributions/modules/feedapi/feedapi_feed/feedapi_feed.install

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


Revision 1.6 - (show annotations) (download) (as text)
Mon Jul 23 15:40:19 2007 UTC (2 years, 4 months ago) by alexb
Branch: MAIN
CVS Tags: DRUPAL-5--0-1, HEAD
Branch point for: DRUPAL-5
Changes since 1.5: +3 -3 lines
File MIME type: text/x-php
Changed: pass into hook_parse()  instead of ->url
1 <?php
2 // $Id: feedapi_feed.install,v 1.5 2007/07/18 16:36:48 aronnovak Exp $
3
4 function feedapi_feed_install() {
5 switch ($GLOBALS['db_type']) {
6 case 'mysqli':
7 case 'mysql':
8 db_query("CREATE TABLE if not exists {feedapi_node_feed} (
9 fid int(10) unsigned NOT NULL,
10 nid int(10) unsigned NOT NULL,
11 link varchar(255) NOT NULL default '',
12 items_delete INT(10) NOT NULL default '-1',
13 PRIMARY KEY(fid, nid))");
14 break;
15 case 'pgsql':
16 db_query("CREATE TABLE {feedapi_node_feed} (
17 fid integer NOT NULL,
18 nid integer NOT NULL,
19 link varchar(255) NOT NULL default '',
20 items_delete integer NOT NULL default '-1',
21 PRIMARY KEY(fid, nid))");
22 break;
23 }
24 }
25
26 function feedapi_feed_uninstall() {
27 switch ($GLOBALS['db_type']) {
28 case 'mysqli':
29 case 'mysql':
30 db_query("DROP TABLE {feedapi_node_feed}");
31 break;
32 case 'pgsql':
33 // FIXME
34 break;
35 }
36 }

  ViewVC Help
Powered by ViewVC 1.1.2