diff options
-rw-r--r-- | HISTORY.h | 5 | ||||
-rw-r--r-- | lib/db.c | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -4,7 +4,7 @@ * ----------------------------------- */ -#define _VERSION "1.1.152" +#define _VERSION "1.1.153" #define VERSION_DATE "10.02.2020" #define DB_API 7 @@ -18,6 +18,9 @@ * ------------------------------------ * +2020-02-10: version 1.1.153 (horchi) + - added: More debug messages + 2020-02-10: version 1.1.152 (horchi) - bugfix: Fixed problem with detection of table changes @@ -960,6 +960,10 @@ int cDbTable::validateStructure(int allowAlter) tell(5, "Debug: Description of '%s' changed from '%s' to '%s'", getField(i)->getDbName(), fieldInfo->description.c_str(), getField(i)->getDescription()); + if (strcasecmp(fieldInfo->def.c_str(), getField(i)->getDefault()) != 0 && !(getField(i)->getType() & ftPrimary)) + tell(5, "Debug: Default value of '%s' changed from from '%s' to '%s'", getField(i)->getDbName(), + fieldInfo->def.c_str(), getField(i)->getDefault()); + alterModifyField(getField(i)); } } |