diff options
Diffstat (limited to 'update.c')
-rw-r--r-- | update.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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; } |