From 1b163e169c22e3b38d3bb766ceee8fa2b08aa084 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 27 Jun 2010 13:05:14 +0000 Subject: [PATCH] Added company db upgrade boundary markers in error log. --- admin/inst_upgrade.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/admin/inst_upgrade.php b/admin/inst_upgrade.php index 49c97bbd..786e889a 100644 --- a/admin/inst_upgrade.php +++ b/admin/inst_upgrade.php @@ -102,10 +102,16 @@ function upgrade_step($index, $conn) if (!$inst->pre_check($pref, $force)) return false; $sql = $inst->sql; + error_log(sprintf(_("Database upgrade for company '%s' (%s:%s*) started..."), + $conn['name'], $conn['dbname'], $conn['tbpref'])); + if ($sql != '') $ret &= db_import($path_to_root.'/sql/'.$sql, $conn, $force); $ret &= $inst->install($pref, $force); + + error_log(_("Database upgarade finished.")); + } else if ($state!==true) { display_error(_("Upgrade cannot be done because database has been already partially upgraded. Please downgrade database to clean previous version or try forced upgrade.")); -- 2.30.2