]> git.mjollnir.org Git - moodle.git/commitdiff
Updated version to 2003061100 and modify backup tables (mediumtext)
authorstronk7 <stronk7>
Thu, 12 Jun 2003 17:40:55 +0000 (17:40 +0000)
committerstronk7 <stronk7>
Thu, 12 Jun 2003 17:40:55 +0000 (17:40 +0000)
backup/backup_version.php
backup/db/backup_mysql.php

index 0a9c8281626a27bc331689650160fb78cbd792b9..0b757b8fdf19e86c2db3503c7f340d78ab31d58f 100644 (file)
@@ -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
index 2f4bc032fcedc11b7d46745aeab2a74f5d6c3b21..c9ab8cabbeb5372115e0a6a1627acf5a68b9afa3 100644 (file)
@@ -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;