From 041c9e7a7a2c5138bbcf8b94c75467d43a6d68cd Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 31 May 2014 12:04:16 +0200 Subject: [PATCH] Added Log to update_020101 --- php/database/update_020101.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/php/database/update_020101.php b/php/database/update_020101.php index 01665a5..3522924 100644 --- a/php/database/update_020101.php +++ b/php/database/update_020101.php @@ -7,9 +7,15 @@ ### $result = $database->query("ALTER TABLE `lychee_settings` CHANGE `value` `value` VARCHAR( 200 ) NULL DEFAULT ''"); -if (!$result) return false; +if (!$result) { + Log::error($database, 'update_020101', __LINE__, 'Could not update database (' . $database->error . ')'); + return false; +} $result = $database->query("UPDATE lychee_settings SET value = '020101' WHERE `key` = 'version';"); -if (!$result) return false; +if (!$result) { + Log::error($database, 'update_020101', __LINE__, 'Could not update database (' . $database->error . ')'); + return false; +} ?> \ No newline at end of file