I exported SQL script with workbench to phpMyAdmin and I get an error because of TIMESTAMP default value.
Here's a piece of code:
CREATE TABLE IF NOT EXISTS `test`.`is_users` (
`count` INT(10) UNIQUE NOT NULL AUTO_INCREMENT,
`active` ENUM('1', '0') NULL DEFAULT 1,
`id` VARCHAR(36) UNIQUE NOT NULL,
`created_at` TIMESTAMP NOT NULL DEFAULT '1970-01-01 00:00:01',
`updated_at` TIMESTAMP NOT NULL DEFAULT '1970-01-01 00:00:01',
`deleted_at` TIMESTAMP NULL DEFAULT NULL,
And I get an error :
#1067 - Invalid default value for 'created_at'
To avoid an error, the default date should be for example 1970-01-01 01:01:01, it means that there cannot be zeros. How could I fix that? Thanks.