? odt.patch
? system.patch
? tinyint.patch
? upload.patch
Index: database/database.4.0.mysql
===================================================================
RCS file: /cvs/drupal/drupal/database/Attic/database.4.0.mysql,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 database.4.0.mysql
--- database/database.4.0.mysql	5 Dec 2006 13:11:08 -0000	1.1.2.2
+++ database/database.4.0.mysql	21 Dec 2006 00:52:40 -0000
@@ -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 NOT NULL auto_increment,
   title varchar(64) NOT NULL default '',
   body longtext,
   info varchar(128) NOT NULL default '',
Index: database/updates.inc
===================================================================
RCS file: /cvs/drupal/drupal/database/Attic/updates.inc,v
retrieving revision 1.224.2.7
diff -u -p -r1.224.2.7 updates.inc
--- database/updates.inc	5 Dec 2006 13:11:09 -0000	1.224.2.7
+++ database/updates.inc	21 Dec 2006 00:52:41 -0000
@@ -2013,3 +2013,18 @@ function system_update_182() {
 
   return $ret;
 }
+
+function system_update_183() {
+  $ret = array();
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
+      $ret[] = update_sql("ALTER TABLE {access} CHANGE aid aid int  NOT NULL AUTO_INCREMENT ");
+      $ret[] = update_sql("ALTER TABLE {boxes} CHANGE bid bid int NOT NULL AUTO_INCREMENT ");
+      break;
+    case 'pgsql':
+       // No database update required for PostgreSQL because it already uses big SERIAL numbers.
+  }
+
+  return $ret;
+}
