I'm in a huge confusion. Trying with bunch of combinations using DATE(), CURDATE(), NOW(), STR_TO_DATE(), CONVERT() and other functions, I can't set up a default value for my DATE type column which is going to store current date in 'yyyy-MM-dd' format. What syntax should it be for this? I have even try generated columns but no effects at all. Typing into console short examples like 'SELECT DATE(CURDATE())' works fine but when I want to set it up as a default value of given column it gives me an error. Such a tiny thing to do and such a problem... I'm using 5.7.24 version of MySQL Server.
ALTER TABLE my_table ADD COLUMN today DATE DEFAULT ..................