From: moodler Date: Fri, 29 Sep 2006 06:43:42 +0000 (+0000) Subject: Fixed the upgrade from 1.6.x. The role->shortname field was not being created. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=76389cec1726ee25ff85022361da78fc70fc28fd;p=moodle.git Fixed the upgrade from 1.6.x. The role->shortname field was not being created. --- diff --git a/lib/db/mysql.php b/lib/db/mysql.php index 9a168cf0c1..6c5e79338e 100644 --- a/lib/db/mysql.php +++ b/lib/db/mysql.php @@ -2005,6 +2005,7 @@ function main_upgrade($oldversion=0) { execute_sql("CREATE TABLE {$CFG->prefix}role ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(255) NOT NULL default '', + `shortname` varchar(100) NOT NULL default '', `description` text NOT NULL default '', `sortorder` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`id`) diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index 56f6b4c709..348fba0921 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -1622,6 +1622,7 @@ function main_upgrade($oldversion=0) { modify_database('', "CREATE TABLE prefix_role ( id SERIAL PRIMARY KEY, name varchar(255) NOT NULL default '', + shortname varchar(100) NOT NULL default '', description text NOT NULL default '', sortorder integer NOT NULL default '0' );");