diff options
-rw-r--r-- | HISTORY.h | 8 | ||||
-rw-r--r-- | lib/db.c | 6 | ||||
-rw-r--r-- | update.c | 2 |
3 files changed, 14 insertions, 2 deletions
@@ -4,8 +4,8 @@ * ----------------------------------- */ -#define _VERSION "1.1.150" -#define VERSION_DATE "28.01.2020" +#define _VERSION "1.1.151" +#define VERSION_DATE "09.02.2020" #define DB_API 7 #ifdef GIT_REV @@ -18,6 +18,10 @@ * ------------------------------------ * * +2020-02-09: version 1.1.151 (horchi) + - bugfix: Added missing commit after timer cleanup + - added: Debug messages for alter table + 2020-01-28: version 1.1.150 (horchi) - added: Using pkg-config for libxml2 (by Alexander Grothe) @@ -952,6 +952,12 @@ int cDbTable::validateStructure(int allowAlter) strcasecmp(fieldInfo->description.c_str(), getField(i)->getDescription()) != 0 || (strcasecmp(fieldInfo->def.c_str(), getField(i)->getDefault()) != 0 && !(getField(i)->getType() & ftPrimary))) { + if (strcasecmp(fieldInfo->columnFormat.c_str(), colType) != 0) + tell(4, "Debug: Format of '%s' changed from '%s' to '%s'", getField(i)->getDbName(), fieldInfo->columnFormat.c_str(), colType); + + if (strcasecmp(fieldInfo->description.c_str(), getField(i)->getDescription()) != 0) + tell(4, "Debug: Description of '%s' changed from '%s' to '%s'", getField(i)->getDbName(), fieldInfo->description.c_str(), getField(i)->getDescription()); + alterModifyField(getField(i)); } } @@ -1723,6 +1723,8 @@ void cEpgd::loop() " state = 'F', action = 'A', info = 'cleanuped'" " where (state = 'R' or state = 'P')" " and from_unixtime(_endtime) < (now() - interval 5 minute);"); + + connection->commit(); } if (!dbConnected()) |