Changed the data type and default value of 'locale' and 'timezone' fields in the users table. Instead of using strings, we are now using unsigned integers.

!!! Since the project has not yet been launched, therefore, I do not create a new migration, but change the current one. !!!
This commit is contained in:
Leonid Nikitin 2023-07-08 15:12:10 +06:00
parent 39eae7f196
commit e5d0cac07d
Signed by: kor-elf
GPG Key ID: 7DE8F80C5CEC2C0D

View File

@ -19,8 +19,8 @@ return new class extends Migration
$table->timestamp('email_verified_at')->nullable(); $table->timestamp('email_verified_at')->nullable();
$table->string('password'); $table->string('password');
$table->rememberToken(); $table->rememberToken();
$table->string('locale', 2)->default('ru'); $table->unsignedInteger('locale')->nullable();
$table->string('timezone')->nullable(); $table->unsignedInteger('timezone')->nullable();
$table->timestamps(); $table->timestamps();
$table->softDeletes(); $table->softDeletes();
}); });