Commit 843b8263 authored by Darryl Hamilton's avatar Darryl Hamilton
Browse files

Add ctime field to view_access including upgrade



Change-Id: Ie3758aa8a5b07036ac496e0aea3fae944307ed22
Signed-off-by: default avatarDarryl Hamilton <darrylh@catalyst.net.nz>
parent 7e986395
......@@ -693,6 +693,7 @@
<FIELD NAME="stopdate" TYPE="datetime" NOTNULL="false" />
<FIELD NAME="allowcomments" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" />
<FIELD NAME="approvecomments" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="1" />
<FIELD NAME="ctime" TYPE="datetime" NOTNULL="true" />
</FIELDS>
<KEYS>
<KEY NAME="viewfk" TYPE="foreign" FIELDS="view" REFTABLE="view" REFFIELDS="id" />
......
......@@ -2313,5 +2313,12 @@ function xmldb_core_upgrade($oldversion=0) {
}
}
if ($oldversion < 2011052400) {
$table = new XMLDBTable('view_access');
$field = new XMLDBField('ctime');
$field->setAttributes(XMLDB_TYPE_DATETIME, null, null);
add_field($table, $field);
}
return $status;
}
......@@ -28,7 +28,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2011052300;
$config->version = 2011052400;
$config->release = '1.4.0alpha2dev';
$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