]> git.mjollnir.org Git - moodle.git/commitdiff
Field added to groups table to allow group specific enrolment keys
authormoodler <moodler>
Tue, 14 Dec 2004 06:41:18 +0000 (06:41 +0000)
committermoodler <moodler>
Tue, 14 Dec 2004 06:41:18 +0000 (06:41 +0000)
lib/db/mysql.php
lib/db/mysql.sql
lib/db/postgres7.php
lib/db/postgres7.sql
version.php

index 8725f4fd60257c315e6191e3bb64097f2ab5b4a2..7b9cd8481445b866cd3586a5722b4587104adab4 100644 (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;
 
index bf7326dd39b218fea5f1642a59c95b58912f0268..270c79e6067d66aebf43300c4c3f85ba7fe921c0 100644 (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',
index c552dfeb4d9b0fdeabcaa7462f0ebdfd6073d799..2d1dd5ab0c611dfe6794400760b665765eea68e4 100644 (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;
 }
index 96f13a8b88e12d08870728accbc3b83bc139d7a3..d5c862727f80e9dab48da91b4f97b68e36c36747 100644 (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',
index 584af0fd6966e658ac87cb06a108330a4aaef855..5db01046e7e7392d7fc6534b381d5e83ea2e5628 100644 (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