You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Received this error. Looks like this code was written in a style that is no longer allowed by MySQL.
[Exception]
SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'creat
ed_at' (SQL: create table users (id int unsigned not null auto_increment primary key
, name varchar(32) not null, username varchar(32) not null, email varchar(320) not
null, password varchar(64) not null, created_at timestamp default 0 not null, upda ted_at timestamp default 0 not null) default character set utf8 collate utf8_unicode_ci
) (Bindings: array (
))
There appear to be some workarounds, but it would be nice to have this very good example source updated.
Best regards,
Kevin
The text was updated successfully, but these errors were encountered:
Received this error. Looks like this code was written in a style that is no longer allowed by MySQL.
[Exception]
SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'creat
ed_at' (SQL: create table
users
(id
int unsigned not null auto_increment primary key,
name
varchar(32) not null,username
varchar(32) not null,email
varchar(320) notnull,
password
varchar(64) not null,created_at
timestamp default 0 not null,upda ted_at
timestamp default 0 not null) default character set utf8 collate utf8_unicode_ci) (Bindings: array (
))
There appear to be some workarounds, but it would be nice to have this very good example source updated.
Best regards,
Kevin
The text was updated successfully, but these errors were encountered: