useCurrentOnUpdate method
Implementation
FieldBlueprint useCurrentOnUpdate() {
if (type == 'TIMESTAMP' || type == 'DATETIME') {
type += ' ON UPDATE CURRENT_TIMESTAMP';
} else {
throw QueryException(
'useCurrentOnUpdate() can only be used with TIMESTAMP or DATETIME');
}
return this;
}