ADD COLOUNS CREATED AND UPDATED AT IN MYSQL
snippet in sql

ADD COLOUNS CREATED AND UPDATED AT IN MYSQL

user9849

ALTER TABLE t1
ADD COLUMN created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
ADD COLUMN updated_at DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;