From 7db989230f5d18aa8b0d9f349d9bc1623e8d68f0 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 14 Aug 2007 04:13:58 +0000 Subject: [PATCH] Added "notification" field, currently unused, to allow MDL-8377 --- mod/data/db/install.xml | 5 +++-- mod/data/db/upgrade.php | 11 +++++++++++ mod/data/version.php | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/mod/data/db/install.xml b/mod/data/db/install.xml index 02e428a994..3bfc2526f1 100644 --- a/mod/data/db/install.xml +++ b/mod/data/db/install.xml @@ -1,5 +1,5 @@ - @@ -34,7 +34,8 @@ - + + diff --git a/mod/data/db/upgrade.php b/mod/data/db/upgrade.php index e027f183d2..a7b6a316cd 100644 --- a/mod/data/db/upgrade.php +++ b/mod/data/db/upgrade.php @@ -63,6 +63,17 @@ function xmldb_data_upgrade($oldversion=0) { $db->debug = true; } + if ($result && $oldversion < 2007081400) { + + /// Define field notification to be added to data + $table = new XMLDBTable('data'); + $field = new XMLDBField('notification'); + $field->setAttributes(XMLDB_TYPE_INTEGER, '10', null, null, null, null, null, null, 'editany'); + + /// Launch add field notification + $result = $result && add_field($table, $field); + } + return $result; } diff --git a/mod/data/version.php b/mod/data/version.php index e54cd9ef60..d3e4e0cf05 100644 --- a/mod/data/version.php +++ b/mod/data/version.php @@ -5,7 +5,7 @@ // This fragment is called by /admin/index.php //////////////////////////////////////////////////////////////////////////////// -$module->version = 2007072200; +$module->version = 2007081400; $module->requires = 2007072200; // Requires this Moodle version $module->cron = 60; -- 2.39.5