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