summaryrefslogtreecommitdiff
path: root/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'update.c')
-rw-r--r--update.c9
1 files changed, 7 insertions, 2 deletions
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;
}