From 56c04bd8e18f88c3c8e3c023cc4507570b371c06 Mon Sep 17 00:00:00 2001 From: horchi Date: Fri, 22 Dec 2017 11:09:46 +0100 Subject: 2017-12-22 version 1.1.77 (horchi)\n - change: backward compatibility to vdr 2.2.0 - another step\n\n --- update.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'update.c') diff --git a/update.c b/update.c index 2810439..55e5427 100644 --- a/update.c +++ b/update.c @@ -281,8 +281,13 @@ int cUpdate::initDb() if (vdrDb->getIntValue("DBAPI") != DB_API) { - tell(0, "Found dbapi %d, expected %d, please alter the tables first! Aborting now.", - (int)vdrDb->getIntValue("DBAPI"), DB_API); + if (vdrDb->getIntValue("DBAPI") < DB_API) + tell(0, "Found dbapi %d, expected %d, please alter the tables first! Aborting now.", + (int)vdrDb->getIntValue("DBAPI"), DB_API); + else + tell(0, "Found dbapi %d, expected %d, please update me! Aborting now.", + (int)vdrDb->getIntValue("DBAPI"), DB_API); + return fail; } -- cgit v1.2.3