Commit 69be97b1 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Drop usercancreate column from grouptype table

parent 2fdc5b1b
......@@ -296,7 +296,6 @@
<TABLE NAME="grouptype">
<FIELDS>
<FIELD NAME="name" TYPE="char" LENGTH="20" NOTNULL="true" />
<FIELD NAME="usercancreate" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" />
<FIELD NAME="takesviewsubmissions" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" />
</FIELDS>
<KEYS>
......
......@@ -1117,6 +1117,10 @@ function xmldb_core_upgrade($oldversion=0) {
execute_sql('ALTER TABLE {view_access_group} DROP COLUMN tutoronly');
}
if ($oldversion < 2008062304) {
execute_sql('ALTER TABLE {grouptype} DROP COLUMN usercancreate');
}
return $status;
}
......
......@@ -532,7 +532,6 @@ abstract class GroupType {
$type = strtolower(substr($classname, strlen('GroupType')));
insert_record('grouptype', (object) array(
'name' => $type,
'usercancreate' => $this->can_be_created_by_user(),
'submittableto' => $this->takes_view_submissions(),
));
$roles = $this->get_roles();
......
......@@ -27,7 +27,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2008062303;
$config->version = 2008062304;
$config->release = '1.1.0alpha';
$config->minupgradefrom = 2007080700;
$config->minupgraderelease = '0.8.0 (release tag 0.8.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