From e5d0cac07d3c3baf69c97450f008d5b25fbe6145 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Sat, 8 Jul 2023 15:12:10 +0600 Subject: [PATCH] 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. !!! --- database/migrations/2014_10_12_000000_create_users_table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2014_10_12_000000_create_users_table.php b/database/migrations/2014_10_12_000000_create_users_table.php index 28d52cf..423c777 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -19,8 +19,8 @@ return new class extends Migration $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->rememberToken(); - $table->string('locale', 2)->default('ru'); - $table->string('timezone')->nullable(); + $table->unsignedInteger('locale')->nullable(); + $table->unsignedInteger('timezone')->nullable(); $table->timestamps(); $table->softDeletes(); });