useCurrent method

FieldBlueprint useCurrent()

Implementation

FieldBlueprint useCurrent() {
  if (type == 'TIMESTAMP' || type == 'DATETIME') {
    type += ' DEFAULT CURRENT_TIMESTAMP';
  } else {
    throw QueryException(
        'useCurrent() can only be used with TIMESTAMP or DATETIME');
  }
  return this;
}