From cf5b58ee51b47c75973d3ec24b96be0d5e6d75aa Mon Sep 17 00:00:00 2001 From: e107steved Date: Mon, 28 Dec 2009 22:40:38 +0000 Subject: [PATCH] Bugtracker #4610 - add index to content table --- e107_admin/update_routines.php | 19 ++++++++++++++++--- e107_plugins/content/content_sql.php | 22 ++++++++++++++++------ 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/e107_admin/update_routines.php b/e107_admin/update_routines.php index cee0e6d64..00843eb7f 100644 --- a/e107_admin/update_routines.php +++ b/e107_admin/update_routines.php @@ -11,12 +11,24 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/update_routines.php,v $ -| $Revision: 1.74 $ -| $Date: 2009-12-28 17:53:10 $ +| $Revision: 1.75 $ +| $Date: 2009-12-28 22:40:37 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ +/** + * @package e107 + * @subpackage admin + * @version $Id: update_routines.php,v 1.75 2009-12-28 22:40:37 e107steved Exp $; + * + * Update routines from older e107 versions to current. + * + * Also links to plugin update routines. + * + * 2-stage process - routines identify whether update is required, and then execute as instructed. + */ + // [debug=8] shows the operations on major table update require_once('../class2.php'); @@ -275,7 +287,8 @@ function update_706_to_800($type='') $pluginChangedTables = array('linkwords' => 'linkwords', 'featurebox' => 'featurebox', 'links_page' => 'links_page', - 'poll' => 'polls' + 'poll' => 'polls', + 'content' => 'pcontent' ); $setCorePrefs = array( //modified prefs during upgrade. diff --git a/e107_plugins/content/content_sql.php b/e107_plugins/content/content_sql.php index e99d737ec..9d960874f 100644 --- a/e107_plugins/content/content_sql.php +++ b/e107_plugins/content/content_sql.php @@ -6,15 +6,24 @@ * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * - * + * Database structure for content management plugin * * $Source: /cvs_backup/e107_0.8/e107_plugins/content/content_sql.php,v $ - * $Revision: 1.3 $ - * $Date: 2009-11-18 01:05:28 $ - * $Author: e107coders $ + * $Revision: 1.4 $ + * $Date: 2009-12-28 22:40:38 $ + * $Author: e107steved $ */ -header("location:../index.php"); + +/** + * @package e107_plugins + * @subpackage content_management + * @version $Id: content_sql.php,v 1.4 2009-12-28 22:40:38 e107steved Exp $; + * + * Database structure for content management plugin + */ + +header('location:../index.php'); exit; ?> # Table structure for table `content` @@ -43,7 +52,8 @@ CREATE TABLE pcontent ( content_score tinyint(3) unsigned NOT NULL default '0', content_meta text NOT NULL, content_layout varchar(255) NOT NULL default '', - PRIMARY KEY (content_id) + PRIMARY KEY (content_id), + KEY content_parent (content_parent) ) TYPE=MyISAM; # --------------------------------------------------------