1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 13:11:52 +02:00

Update userclass field size in core plugins

This commit is contained in:
e107steved 2009-09-19 19:05:16 +00:00
parent 4f239954ca
commit 7429730903
5 changed files with 17 additions and 13 deletions

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_admin/update_routines.php,v $
| $Revision: 1.52 $
| $Date: 2009-09-17 01:47:20 $
| $Author: e107coders $
| $Revision: 1.53 $
| $Date: 2009-09-19 19:05:16 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@ -266,7 +266,11 @@ function update_706_to_800($type='')
// List of changed DB tables from core plugins (defined in pluginname_sql.php file)
// key = plugin directory name. Data = comma-separated list of tables to check
// (primarily those which have changed significantly; for the odd field write some explicit code - it'll run faster)
$pluginChangedTables = array('linkwords' => 'linkwords');
$pluginChangedTables = array('linkwords' => 'linkwords',
'featurebox' => 'featurebox',
'links_page' => 'links_page',
'poll' => 'poll'
);
// List of DB tables (key) and field (value) which need changing to accommodate IPV6 addresses

View File

@ -3,7 +3,7 @@ CREATE TABLE featurebox (
fb_title varchar(200) NOT NULL default '',
fb_text text NOT NULL,
fb_mode tinyint(3) unsigned NOT NULL default '0',
fb_class tinyint(3) unsigned NOT NULL default '0',
fb_class smallint(5) unsigned NOT NULL default '0',
fb_rendertype tinyint(1) unsigned NOT NULL default '0',
fb_template varchar(50) NOT NULL default '',
PRIMARY KEY (fb_id)

View File

@ -11,10 +11,10 @@ CREATE TABLE forum (
`forum_lastpost_user` int(10) unsigned default NULL,
`forum_lastpost_user_anon` varchar(30) default NULL,
`forum_lastpost_info` varchar(40) default NULL,
`forum_class` tinyint(3) unsigned NOT NULL default '0',
`forum_class` smallint(5) unsigned NOT NULL default '0',
`forum_order` int(10) unsigned NOT NULL default '0',
`forum_postclass` tinyint(3) unsigned NOT NULL default '0',
`forum_threadclass` tinyint(3) unsigned NOT NULL default '0',
`forum_postclass` smallint(5) unsigned NOT NULL default '0',
`forum_threadclass` smallint(5) unsigned NOT NULL default '0',
`forum_options` text,
PRIMARY KEY (`forum_id`),
KEY `forum_parent` (`forum_parent`),

View File

@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/links_page/links_page_sql.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:35:23 $
| $Author: mcfly_e107 $
| $Revision: 1.2 $
| $Date: 2009-09-19 19:05:16 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
header("location:../index.php");
@ -45,7 +45,7 @@ CREATE TABLE links_page (
link_order int(10) unsigned NOT NULL default '0',
link_refer int(10) unsigned NOT NULL default '0',
link_open tinyint(1) unsigned NOT NULL default '0',
link_class tinyint(3) unsigned NOT NULL default '0',
link_class smallint(5) unsigned NOT NULL default '0',
link_datestamp int(10) unsigned NOT NULL default '0',
link_author varchar(255) NOT NULL default '',
PRIMARY KEY (link_id)

View File

@ -12,7 +12,7 @@ CREATE TABLE polls (
poll_comment tinyint(1) unsigned NOT NULL default '1',
poll_allow_multiple tinyint(1) unsigned NOT NULL default '0',
poll_result_type tinyint(2) unsigned NOT NULL default '0',
poll_vote_userclass tinyint(3) unsigned NOT NULL default '0',
poll_vote_userclass smallint(5) unsigned NOT NULL default '0',
poll_storage_method tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (poll_id)
) TYPE=MyISAM;