From e92b7f83d38b91753f831a436da52e8670c455b0 Mon Sep 17 00:00:00 2001 From: miguel456 Date: Sun, 4 Sep 2022 15:25:55 +0100 Subject: [PATCH] feat: add locale to user table --- .../2022_09_04_133123_add_locale_to_users.php | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 database/migrations/2022_09_04_133123_add_locale_to_users.php diff --git a/database/migrations/2022_09_04_133123_add_locale_to_users.php b/database/migrations/2022_09_04_133123_add_locale_to_users.php new file mode 100644 index 0000000..c98cad7 --- /dev/null +++ b/database/migrations/2022_09_04_133123_add_locale_to_users.php @@ -0,0 +1,22 @@ +string('locale')->after('email')->default('en-US'); + }); + } + + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('locale'); + }); + } +}