summaryrefslogtreecommitdiff
path: root/lib/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/db.c')
-rw-r--r--lib/db.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/db.c b/lib/db.c
index 7c3b57c..41c8d68 100644
--- a/lib/db.c
+++ b/lib/db.c
@@ -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));
}
}