Closed ltdev22 closed 3 years ago
What's your database schema?
id int(11) pk autoincrement first_name varchar(255) last_name varchar(255) email varchar(255) password (255) ip varchar(255) last_login_at datetime created_at datetime updated_at datetime
ip
is a column on the throttle table, i would suggest you checkout .sql
files inside the schema
directory of this repository.
Yes I have created the tables based on schema/mysql.sql, but I was getting this error even before. So I tried to add an extra ip column in users
table to test if it would fix the issue
Ok, so I've re-run the schema/mysql.sql this time by copying all queries from this file (last time I created the tables manually on my gui tool). I had to change the default values for created_at and updated_at from
created_at
timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
updated_at
timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
to
created_at
timestamp NOT NULL DEFAULT NOW(),
updated_at
timestamp NOT NULL DEFAULT NOW(),
as it was complaining for invalid default value and then when I run the queries worked. Also when I tried the authenticate script I've put on my topic it worked. Not sure if this was the issue, but now seems its working fine, so I think I'm going to close this issue.
That's why we have this file on there
https://github.com/cartalyst/sentinel/blob/5.x/schema/mysql-5.6%2B.sql
Your Environment
Expected behaviour
Trying to authenticate with my credentials on a php app
Actual behaviour
Getting the following error on screen when I make the request
I'm not sure if this is related to docker, but this is the docker-compose file