From 3680e04817480e0e007797f30973e402eefa70f5 Mon Sep 17 00:00:00 2001 From: akemidx Date: Mon, 18 Mar 2024 18:29:59 -0400 Subject: [PATCH] migration to set legacy locations to an standardized format --- ...4_03_18_221612_update_legacy_locations.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 database/migrations/2024_03_18_221612_update_legacy_locations.php diff --git a/database/migrations/2024_03_18_221612_update_legacy_locations.php b/database/migrations/2024_03_18_221612_update_legacy_locations.php new file mode 100644 index 0000000000..718022abdd --- /dev/null +++ b/database/migrations/2024_03_18_221612_update_legacy_locations.php @@ -0,0 +1,36 @@ +string('locale', 5)->nullable()->default(config('app.fallback_locale'))->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + Schema::table('users', function (Blueprint $table) { + // + $table->string('locale', 10)->nullable()->default(config('app.locale'))->change(); + }); + } +}