Field added to groups table to allow group specific enrolment keys

This commit is contained in:
moodler
2004-12-14 06:41:18 +00:00
parent 21da9db80b
commit 1a5bc0467f
5 changed files with 10 additions and 1 deletions
+3
View File
@@ -1009,6 +1009,9 @@ function main_upgrade($oldversion=0) {
table_column('user', '', 'policyagreed', 'integer', '1', 'unsigned', '0', 'not null', 'confirmed');
}
if ($oldversion < 2004121400) {
table_column('groups', '', 'password', 'varchar', '50', '', '', 'not null', 'description');
}
return $result;
+1
View File
@@ -213,6 +213,7 @@ CREATE TABLE `prefix_groups` (
`courseid` int(10) unsigned NOT NULL default '0',
`name` varchar(254) NOT NULL default '',
`description` text NOT NULL,
`password` varchar(50) NOT NULL default '',
`lang` varchar(10) NOT NULL default 'en',
`picture` int(10) unsigned NOT NULL default '0',
`hidepicture` int(2) unsigned NOT NULL default '0',
+4
View File
@@ -777,6 +777,10 @@ function main_upgrade($oldversion=0) {
if ($oldversion < 2004112900) {
table_column('user', '', 'policyagreed', 'integer', '1', 'unsigned', '0', 'not null', 'confirmed');
}
if ($oldversion < 2004121400) {
table_column('groups', '', 'password', 'varchar', '50', '', '', 'not null', 'description');
}
return $result;
}
+1
View File
@@ -121,6 +121,7 @@ CREATE TABLE prefix_groups (
courseid integer NOT NULL default '0',
name varchar(255) NOT NULL default '',
description text,
password varchar(50) NOT NULL default '',
lang varchar(10) NOT NULL default '',
picture integer NOT NULL default '0',
hidepicture integer NOT NULL default '0',
+1 -1
View File
@@ -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 = 2004112900; // YYYYMMDD = date of first major branch release 1.4
$version = 2004121400; // YYYYMMDD = date of first major branch release 1.4
// XY = increments within a single day
$release = '1.5 UNSTABLE DEVELOPMENT'; // Human-friendly version name