Commit 03fa3dad authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add mailssent, mailsbounced columns on new installs and increase length


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent d416c08c
......@@ -13,6 +13,8 @@
<FIELD NAME="artefact" TYPE="int" LENGTH="10" NOTNULL="false"/>
<FIELD NAME="key" TYPE="char" LENGTH="16" NOTNULL="false"/>
<FIELD NAME="expiry" TYPE="datetime" NOTNULL="false"/>
<FIELD NAME="mailssent" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0"/>
<FIELD NAME="mailsbounced" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0"/>
</FIELDS>
<KEYS>
<KEY NAME="primary" TYPE="primary" FIELDS="owner,email"/>
......
......@@ -1287,14 +1287,14 @@ function xmldb_core_upgrade($oldversion=0) {
if ($oldversion < 2009111200) {
$table = new XMLDBTable('artefact_internal_profile_email');
$field = new XMLDBField('mailssent');
$field->setAttributes(XMLDB_TYPE_INTEGER, 1, null, XMLDB_NOTNULL, null, null, null, 0);
$field->setAttributes(XMLDB_TYPE_INTEGER, 2, null, XMLDB_NOTNULL, null, null, null, 0);
add_field($table, $field);
}
if ($oldversion < 2009111201) {
$table = new XMLDBTable('artefact_internal_profile_email');
$field = new XMLDBField('mailsbounced');
$field->setAttributes(XMLDB_TYPE_INTEGER, 1, null, XMLDB_NOTNULL, null, null, null, 0);
$field->setAttributes(XMLDB_TYPE_INTEGER, 2, null, XMLDB_NOTNULL, null, null, null, 0);
add_field($table, $field);
}
......
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