NOTE. The question is the DATE type, not the Datetime or Timestamp.
How to change date column type to use current date by default? I have seen many examples for datetime, but not for date. I tried:
ALTER TABLE `accounting` ALTER `accounting_date` SET DEFAULT CURRENT_DATE;
ALTER TABLE `accounting` CHANGE `accounting_date` `accounting_date` DATE NOT NULL DEFAULT CURRENT_DATE;
I also tried using CURDATE (), NOW (), CURRENT_DATE () ...
source
share