3 * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
4 * Copyright (C) 2002-2009 The Nucleus Group
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 * (see nucleus/documentation/index.html#license for more info)
13 * @license http://nucleuscms.org/license.txt GNU General Public License
14 * @copyright Copyright (C) 2002-2009 The Nucleus Group
15 * @version $Id: upgrade3.6.php 1714 2012-03-31 06:32:09Z sakamocchi $
18 function upgrade_do360() {
20 if (upgrade_checkinstall(360))
21 return 'already installed';
23 // Give user warning if they are running old version of PHP
24 if (phpversion() < '5') {
25 echo 'WARNING: You are running NucleusCMS on a older version of PHP that is no longer supported by NucleusCMS. Please upgrade to PHP5!';
28 // changing the blog table to lengthen bnotify field
29 $query = " ALTER TABLE " . sql_table('blog') . "
30 MODIFY bnotify varchar(128) default NULL ;";
32 upgrade_query('Altering ' . sql_table('blog') . ' table', $query);
35 // update database version
36 update_version('360');
38 // Remind user to re-install NP_Ping