[geeklog-cvs] Geeklog-1.x/sql/updates mysql_1.4.1_to_1.4.2.php, 1.20, 1.21

Oliver ospiess at qs1489.pair.com
Tue Aug 28 03:34:50 EDT 2007


Update of /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/sql/updates
In directory qs1489.pair.com:/tmp/cvs-serv65397/updates

Modified Files:
	mysql_1.4.1_to_1.4.2.php 
Log Message:
install new links plugin with cateogory tree

Index: mysql_1.4.1_to_1.4.2.php
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/sql/updates/mysql_1.4.1_to_1.4.2.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** mysql_1.4.1_to_1.4.2.php	28 Aug 2007 05:36:47 -0000	1.20
--- mysql_1.4.1_to_1.4.2.php	28 Aug 2007 07:34:48 -0000	1.21
***************
*** 15,21 ****
  $_SQL[] = "ALTER TABLE {$_TABLES['linksubmission']} ADD owner_id mediumint(8) unsigned NOT NULL default '1';";
  
- // update plugin version numbers
- $_SQL[] = "UPDATE {$_TABLES['plugins']} SET pi_version = '1.0.1', pi_gl_version = '1.4.1' WHERE pi_name = 'links'";
- 
  // Increase block function size to accept arguments:
  $_SQL[] = "ALTER TABLE {$_TABLES['blocks']} CHANGE phpblockfn phpblockfn VARCHAR(128)";
--- 15,18 ----
***************
*** 94,96 ****
--- 91,102 ----
  }
  
+ function upgrade_LinksPlugin() {
+     global $_TABLES, $_CONF;
+     $check_sql = "SELECT pi_name FROM {$_TABLES['plugins']} WHERE pi_name = 'links';";
+     $check_rst = DB_query ($check_sql);
+     if (DB_numRows($check_rst) == 1) {
+         include_once($_CONF['path'] . "/plugins/links/functions.inc");
+         plugin_upgrade_links();
+     }
+ }
  ?>




More information about the geeklog-cvs mailing list