alter table `RMS`.`transactionentry`
change `Date` `Date` date default current_timestamp NOT NULL
Updated:
I do not think you can achieve this with mysql date. You should use timestampor try this approach.
CREATE TRIGGER transactionentry_OnInsert BEFORE INSERT ON `RMS`.`transactionentry`
FOR EACH ROW SET NEW.dateColumn = IFNULL(NEW.dateColumn, NOW());
source
share