Permalink
Browse files

Fix for bug 2488:

Extending mdl_log column module to varchar(20).
It was already 20 chars in Postgres, so no changes there.
  • Loading branch information...
1 parent e4d8d0b commit 783453129bec1966636b63226e04aff97cc8e082 defacer committed Feb 8, 2005
Showing with 8 additions and 3 deletions.
  1. +5 −0 lib/db/mysql.php
  2. +1 −1 lib/db/mysql.sql
  3. +1 −1 lib/db/oci8po.sql
  4. +1 −1 version.php
View
@@ -1180,6 +1180,11 @@ function main_upgrade($oldversion=0) {
}
}
+ if ($oldversion < 2005020800) {
+ // Expand module column to max 20 chars
+ table_column('log','module','module','varchar','20','','','not null');
+ }
+
return $result;
}
View
@@ -277,7 +277,7 @@ CREATE TABLE `prefix_log` (
`userid` int(10) unsigned NOT NULL default '0',
`ip` varchar(15) NOT NULL default '',
`course` int(10) unsigned NOT NULL default '0',
- `module` varchar(10) NOT NULL default '',
+ `module` varchar(20) NOT NULL default '',
`cmid` int(10) unsigned NOT NULL default '0',
`action` varchar(15) NOT NULL default '',
`url` varchar(100) NOT NULL default '',
View
@@ -260,7 +260,7 @@ CREATE TABLE prefix_log (
userid number(10) default '0' not null,
ip varchar2(15) default '' not null,
course number(10) default '0' not null,
- module varchar2(10) default '' not null,
+ module varchar2(20) default '' not null,
action varchar2(15) default '' not null,
url varchar2(100) default '' not null,
info varchar2(255) default '' not null
View
@@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)
- $version = 2005020101; // YYYYMMDD = date of first major branch release 1.4
+ $version = 2005020800; // YYYYMMDD = date of first major branch release 1.4
// XY = increments within a single day
$release = '1.5 UNSTABLE DEVELOPMENT'; // Human-friendly version name

0 comments on commit 7834531

Please sign in to comment.