// Moodle v2.7.0 release upgrade line.
// Put any upgrade step following this.
- if ($oldversion < 2014051201) {
- // MDL-36874 Book update.
+
+ // Moodle v2.8.0 release upgrade line.
+ // Put any upgrade step following this.
+
++ if ($oldversion < 2014111800) {
++
++ // Define field navstyle to be added to book.
+ $table = new xmldb_table('book');
- $field = new xmldb_field('navstyle', XMLDB_TYPE_INTEGER, '4' , XMLDB_UNSIGNED, XMLDB_NOTNULL, null, 1);
++ $field = new xmldb_field('navstyle', XMLDB_TYPE_INTEGER, '4', null, XMLDB_NOTNULL, null, '1', 'numbering');
+
+ // Conditionally launch add field navstyle.
+ if (!$dbman->field_exists($table, $field)) {
+ $dbman->add_field($table, $field);
+ }
+
- // MDL-36874 savepoint reached.
- upgrade_mod_savepoint(true, 2014051201, 'book');
++ // Book savepoint reached.
++ upgrade_mod_savepoint(true, 2014111800, 'book');
+ }
+
return true;
}
defined('MOODLE_INTERNAL') || die;
$plugin->component = 'mod_book'; // Full name of the plugin (used for diagnostics)
- $plugin->version = 2014111000; // The current module version (Date: YYYYMMDDXX)
-$plugin->version = 2014051201; // The current module version (Date: YYYYMMDDXX)
-$plugin->requires = 2014050800; // Requires this Moodle version
++$plugin->version = 2014111800; // The current module version (Date: YYYYMMDDXX)
+$plugin->requires = 2014110400; // Requires this Moodle version
$plugin->cron = 0; // Period for cron to check this module (secs)