Fiscal Year delete . now removes all transactions and convert into relevant open...
[fa-stable.git] / admin / inst_upgrade.php
index 682914f6d545b61997d469dcd6d1c6ce0ae41910..9166a59240c8f45fd1c71cb394abf204cd62eb77 100644 (file)
@@ -134,13 +134,8 @@ if (get_post('Upgrade'))
                                ." '".$conn['name']."'");
                        continue;
                }
-       // create security backup               
-               if ($conn['tbpref'] != "")
-                       $filename = $conn['dbname'] . "_" . $conn['tbpref'] . date("Ymd_Hi") . ".sql";
-               else
-                       $filename = $conn['dbname'] . "_" . date("Ymd_Hi") . ".sql";
-
-               db_export($conn, $filename, 'no', 'Security backup before upgrade', $conn['tbpref']);
+       // create security backup       
+               db_backup($conn, 'no', 'Security backup before upgrade', $conn['tbpref']);
        // apply all upgrade data
                foreach ($installers as $i => $inst) 
                {