Skip to content
Snippets Groups Projects
Commit adc7f023 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #49115 by pwolanin: work around a limit of the number of blocks/boxes.

parent 3518d7bd
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -122,7 +122,7 @@ function system_install() { ...@@ -122,7 +122,7 @@ function system_install() {
case 'mysql': case 'mysql':
case 'mysqli': case 'mysqli':
db_query("CREATE TABLE {access} ( db_query("CREATE TABLE {access} (
aid tinyint NOT NULL auto_increment, aid int NOT NULL auto_increment,
mask varchar(255) NOT NULL default '', mask varchar(255) NOT NULL default '',
type varchar(255) NOT NULL default '', type varchar(255) NOT NULL default '',
status tinyint NOT NULL default '0', status tinyint NOT NULL default '0',
...@@ -153,7 +153,7 @@ function system_install() { ...@@ -153,7 +153,7 @@ function system_install() {
) /*!40100 DEFAULT CHARACTER SET UTF8 */ "); ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
db_query("CREATE TABLE {boxes} ( db_query("CREATE TABLE {boxes} (
bid tinyint NOT NULL auto_increment, bid int NOT NULL auto_increment,
body longtext, body longtext,
info varchar(128) NOT NULL default '', info varchar(128) NOT NULL default '',
format int NOT NULL default '0', format int NOT NULL default '0',
...@@ -3151,8 +3151,8 @@ function system_update_1004() { ...@@ -3151,8 +3151,8 @@ function system_update_1004() {
switch ($GLOBALS['db_type']) { switch ($GLOBALS['db_type']) {
case 'mysql': case 'mysql':
case 'mysqli': case 'mysqli':
$ret[] = update_sql("ALTER TABLE {access} CHANGE `aid` `aid` INT( 10 ) NOT NULL AUTO_INCREMENT "); $ret[] = update_sql("ALTER TABLE {access} CHANGE `aid` `aid` int NOT NULL AUTO_INCREMENT ");
$ret[] = update_sql("ALTER TABLE {boxes} CHANGE `bid` `bid` INT( 10 ) NOT NULL AUTO_INCREMENT "); $ret[] = update_sql("ALTER TABLE {boxes} CHANGE `bid` `bid` int NOT NULL AUTO_INCREMENT ");
break; break;
case 'pgsql': case 'pgsql':
// No database update required for PostgreSQL because it already uses big SERIAL numbers. // No database update required for PostgreSQL because it already uses big SERIAL numbers.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment