Update of /cvsroot/phpwebsite-comm/modules/article/boost
In directory sc8-pr-cvs1:/tmp/cvs-serv22121/boost
Modified Files:
install.sql update.php
Log Message:
2.0 Release
Index: install.sql
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/article/boost/install.sql,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** install.sql 11 Aug 2003 15:52:16 -0000 1.5
--- install.sql 21 Oct 2003 21:14:21 -0000 1.6
***************
*** 23,26 ****
--- 23,28 ----
version smallint NOT NULL DEFAULT '0',
announce smallint NOT NULL DEFAULT '1',
+ meta_keywords varchar(100) NOT NULL DEFAULT '',
+ meta_robots char(2) NOT NULL DEFAULT '',
key (hits),
Index: update.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/article/boost/update.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** update.php 31 Aug 2003 22:57:24 -0000 1.3
--- update.php 21 Oct 2003 21:14:22 -0000 1.4
***************
*** 165,167 ****
--- 165,183 ----
$content .= 'Update to 1.5 Finished!<br />';
}
+ if($currentVersion < 1.6)
+ {
+ $content .= 'Updating Article Manager to version 2.0<br />';
+ $content .= 'Adding columns "meta_keywords" and "meta_robots" to table mod_article.<br />';
+ $sql = 'ALTER TABLE ' . $GLOBALS['core']->tbl_prefix
+ . 'mod_article ADD (meta_keywords varchar(100) NOT NULL DEFAULT "", meta_robots char(2) NOT NULL DEFAULT "")';
+ if ($GLOBALS['core']->query($sql))
+ $content .= 'Columns added successfully!<br />';
+ else
+ $content .= 'Update Failed!<br />Try to run this sql command on your database manually: '.$sql.'<br />';
+ $_SESSION['OBJ_help']->uninstall_help('article');
+ $_SESSION['OBJ_help']->setup_help('article');
+ $content .= 'Update to 1.6 Finished!<br />';
+ }
+ $_SESSION['OBJ_help']->uninstall_help('article');
+ $_SESSION['OBJ_help']->setup_help('article');
?>
|