From: stronk7 Date: Thu, 12 Jun 2003 17:40:55 +0000 (+0000) Subject: Updated version to 2003061100 and modify backup tables (mediumtext) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=10453b424e0a0b7bc2348bdf457ddae7cd28a1b1;p=moodle.git Updated version to 2003061100 and modify backup tables (mediumtext) --- diff --git a/backup/backup_version.php b/backup/backup_version.php index 0a9c828162..0b757b8fdf 100644 --- a/backup/backup_version.php +++ b/backup/backup_version.php @@ -5,6 +5,6 @@ // database (backup_version) to determine whether upgrades should // be performed (see db/backup_*.php) -$backup_version = 2003061000; // The current version is a date (YYYYMMDDXX) +$backup_version = 2003061100; // The current version is a date (YYYYMMDDXX) -$backup_release = "0.5.5 alpha"; // User-friendly version number +$backup_release = "0.5.7 alpha"; // User-friendly version number diff --git a/backup/db/backup_mysql.php b/backup/db/backup_mysql.php index 2f4bc032fc..c9ab8cabbe 100644 --- a/backup/db/backup_mysql.php +++ b/backup/db/backup_mysql.php @@ -61,6 +61,11 @@ function backup_upgrade($oldversion=0) { MODIFY `info` TEXT"); } + if ($oldversion < 2003061100 and $result) { + $result = execute_sql("ALTER TABLE `{$CFG->prefix}backup_ids` + MODIFY `info` MEDIUMTEXT"); + } + //Finally, return result return $result;