Commit ea0ccd13 authored by Dries's avatar Dries

- Patch #71389 by agentrickard, sime, me et al: removed limitations of number...

- Patch #71389 by agentrickard, sime, me et al: removed limitations of number of access control rules and boxes.
parent c990f2e1
......@@ -4,7 +4,7 @@
-- Table structure for table 'access'
--
CREATE TABLE access (
aid tinyint(10) NOT NULL auto_increment,
aid int(10) NOT NULL auto_increment,
mask varchar(255) NOT NULL default '',
type varchar(255) NOT NULL default '',
status tinyint(2) NOT NULL default '0',
......@@ -147,7 +147,7 @@ CREATE TABLE book (
--
CREATE TABLE boxes (
bid tinyint(4) NOT NULL auto_increment,
bid int(4) NOT NULL auto_increment,
title varchar(64) NOT NULL default '',
body longtext,
info varchar(128) NOT NULL default '',
......
......@@ -4,7 +4,7 @@
-- Table structure for table 'access'
--
CREATE TABLE access (
aid tinyint(10) NOT NULL auto_increment,
aid int(10) NOT NULL auto_increment,
mask varchar(255) NOT NULL default '',
type varchar(255) NOT NULL default '',
status tinyint(2) NOT NULL default '0',
......@@ -157,7 +157,7 @@ DEFAULT CHARACTER SET utf8;
--
CREATE TABLE boxes (
bid tinyint(4) NOT NULL auto_increment,
bid int(4) NOT NULL auto_increment,
title varchar(64) NOT NULL default '',
body longtext,
info varchar(128) NOT NULL default '',
......
......@@ -2087,3 +2087,18 @@ function system_update_186() {
}
function system_update_187() {
// Increase the size of bid in boxes and aid in access
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {access} CHANGE `aid` `aid` INT( 10 ) NOT NULL AUTO_INCREMENT ");
$ret[] = update_sql("ALTER TABLE {boxes} CHANGE `bid` `bid` INT( 10 ) NOT NULL AUTO_INCREMENT ");
break;
case 'pgsql':
// No database update required for PostgreSQL because it already uses big SERIAL numbers.
break;
}
return $ret;
}
......@@ -1301,7 +1301,7 @@ function drupal_urlencode($text) {
urlencode($text));
}
else {
return str_replace('%2F', '/', urlencode($text));
return str_replace('%2F', '/', urlencode($text));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment