When I upgraded to Ravel 5.7, the column changed to 'password,60' and I got an error.

Asked 2 years ago, Updated 2 years ago, 37 views

After upgrading to Raabel 5.7, did the column names in the users table change automatically?
Yes. (I'm not sure if that's the cause.)

$table->string('password')->nullable();
↓
$table->string('password,60') ->nullable();

Also, when I tried to enter my membership registration, I got the following error.

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'password' in 'field list' (SQL: insert into 'users' (`name', `lastname', `firstname', `email', `password', `updated_at', `created_at') values

Is the column name password,60 the specification of Ravel 5.7 or something?

Conversely, when I returned to $table->string('password')->nullable(); in migrate:refresh, I got the following error:

SQLSTATE [HY000]:General error: 1364 Field 'proveider' does not have a default value

laravel

2022-09-30 14:45

1 Answers

Have you registered $fillable on the Ravel side?

Also, are there any other columns that do not allow null but do not have the default value set?

This is all I could think of from the content and symptoms of the question


2022-09-30 14:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.