From d891a30ba3a3673b64b774aa385757e5bd831d14 Mon Sep 17 00:00:00 2001 From: Justin Obara Date: Tue, 19 Nov 2024 09:17:21 -0500 Subject: [PATCH] fix: remove mention of IRIS from address --- ...830_update_address_in_general_settings.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 database/settings/2024_11_18_184830_update_address_in_general_settings.php diff --git a/database/settings/2024_11_18_184830_update_address_in_general_settings.php b/database/settings/2024_11_18_184830_update_address_in_general_settings.php new file mode 100644 index 000000000..3702d794b --- /dev/null +++ b/database/settings/2024_11_18_184830_update_address_in_general_settings.php @@ -0,0 +1,24 @@ +migrator->update( + 'general.address', + fn ($address) => array_map(fn ($value) => str_replace(' ℅ IRIS', '', $value), (array) $address) + ); + } + + public function down(): void + { + $this->migrator->update( + 'general.address', + fn ($address) => ['en' => 'The Accessibility Exchange ℅ IRIS +20-850 King Street West +Oshawa, ON, L1J 8N5'] + ); + } +};