I have an admin users db, I want to create a column with type datetime for edits, to know when and admin acc was edited, I will introduce the time with php and MySQLi, im on phpmyadmin, when I try to create the column it says:
#1292 - Incorrect datetime value: '0000-00-00 00:00:00' for column 'editado' at row 1
MySQL code is:
ALTER TABLE `admins` ADD `editado` DATETIME NOT NULL AFTER `password`;
Tried to execute on SQL but nothing, how can I do this?