Commit 8ccabebd authored by Darrin Hodges and Nathan Mares and Jiri Baum's avatar Darrin Hodges and Nathan Mares and Jiri Baum Committed by Hugh Davenport
Browse files

Date limits for groups (bug #1017354) - add fields



Add date limits (from-until) to groups; members will only be able to make
changes in the group during the specified time period.

This commit adds the date limit fields to the database schema.

Change-Id: I9feb44b247a8614020540102a30e595308f96f00
Signed-off-by: default avatarJiri Baum <jiri@catalyst-au.net>
parent 784b93eb
......@@ -358,6 +358,8 @@
<FIELD NAME="invitefriends" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" />
<FIELD NAME="suggestfriends" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" />
<FIELD NAME="urlid" TYPE="char" LENGTH="30" NOTNULL="false" />
<FIELD NAME="editwindowstart" TYPE="datetime" NOTNULL="false" />
<FIELD NAME="editwindowend" TYPE="datetime" NOTNULL="false" />
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="id" />
......
......@@ -3115,5 +3115,16 @@ function xmldb_core_upgrade($oldversion=0) {
insert_record('cron', $cron);
}
if ($oldversion < 2012080601) {
$table = new XMLDBTable('group');
$field = new XMLDBField('editwindowstart');
$field->setAttributes(XMLDB_TYPE_DATETIME);
add_field($table, $field);
$field = new XMLDBField('editwindowend');
$field->setAttributes(XMLDB_TYPE_DATETIME);
add_field($table, $field);
}
return $status;
}
......@@ -30,7 +30,7 @@ defined('INTERNAL') || die();
$config = new StdClass;
// See https://wiki.mahara.org/index.php/Developer_Area/Version_Numbering_Policy
// For upgrades on stable branches, increment the version by one. On master, use the date.
$config->version = 2012080600;
$config->version = 2012080601;
$config->release = '1.6.0dev';
$config->minupgradefrom = 2008040200;
$config->minupgraderelease = '1.0.0 (release tag 1.0.0_RELEASE)';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment