Changeset 551 for trunk/upgrade.php

Show
Ignore:
Timestamp:
08/25/07 15:49:17 (15 months ago)
Author:
michiel
Message:

implement automatic backup for MySQL and sqlite.
Postgresql support is lacking at the moment.

Re #124

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/upgrade.php

    r527 r551  
    3434        $latest_version = 0; 
    3535 
    36 echo "looking up files for db type <b>".$updater->db->phptype."</b> starting at version <b>".$latest_version."</b>...<br>"; 
     36echo "looking up files for db type <b>".$updater->db->phptype."</b> starting at version <b>".$latest_version."</b>...<br />"; 
     37 
     38 
    3739$patches = $updater->get_patchfiles($mode); 
    3840if (!count($patches)) 
    3941        die("nothing to do. Your mvblog is already up-to-date."); 
     42 
     43echo "Creating backup of your current database<br />"; 
     44$backup = $updater->create_backups(); 
    4045 
    4146foreach ($patches as $patch) {