From b1c9dac3ccb60bd9c0ebfcc5e57129f958eafc66 Mon Sep 17 00:00:00 2001 From: Leonid Nikitin Date: Mon, 10 Jul 2023 21:39:40 +0600 Subject: [PATCH] The type for 'timezone' in the 'users' table was previously assigned as an unsigned integer. For flexible usage and to support a larger range of timezones, it has been altered to a string. The maximum length is set to 50 characters. This change ensures a more universal and user-friendly handling of various timezone situations. !!! 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 813e874..153717c 100644 --- a/database/migrations/2014_10_12_000000_create_users_table.php +++ b/database/migrations/2014_10_12_000000_create_users_table.php @@ -20,7 +20,7 @@ return new class extends Migration $table->string('password'); $table->rememberToken(); $table->unsignedInteger('lang')->nullable(); - $table->unsignedInteger('timezone')->nullable(); + $table->string('timezone', 50)->nullable(); $table->timestamps(); $table->softDeletes(); });