This should be so simple but I'm pulling my hair out trying to figure this out.
This example mimics the migrations I'll run - essentially it's add...
For further actions, you may consider blocking this person and/or reporting abuse
Just came across this topic and the actual problem is the missing parenthesis
( ). According to this report on the MySQL website, the correct command should be:ALTER TABLE testing ALTER new_column SET DEFAULT(current_timestamp)and not
ALTER TABLE testing ALTER new_column SET DEFAULT current_timestampHope it helps someone looking for this issue.
The correct syntax for that line is:
You need the
MODIFYkeyword instead ofALTER.