set current datetime as default in mysql code example
Example: set default today mysql
ALTER TABLE table
ADD column DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE table
ADD column DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP;