From ea4c71024f43d918716feca64c09ec9e4d8ddccc Mon Sep 17 00:00:00 2001 From: ahmad afandi Date: Sun, 1 Dec 2024 14:14:00 +0700 Subject: [PATCH] Rilis v2412.0.0 (#463) Co-authored-by: Abah Roland <59082428+vickyrolanda@users.noreply.github.com> Co-authored-by: Firliani Fauziah Co-authored-by: Agung Sugiarto Co-authored-by: Afila Co-authored-by: sarwono Co-authored-by: scqolbu24 Co-authored-by: agungsugiarto --- app/Helpers/helper.php | 2 +- catatan_rilis.md | 10 +-- ...56_update_regions_for_papua_barat_daya.php | 72 +++++++++++++++++++ 3 files changed, 74 insertions(+), 10 deletions(-) create mode 100644 database/migrations/2024_11_12_133856_update_regions_for_papua_barat_daya.php diff --git a/app/Helpers/helper.php b/app/Helpers/helper.php index e3ecf713..bf4a4eec 100644 --- a/app/Helpers/helper.php +++ b/app/Helpers/helper.php @@ -11,7 +11,7 @@ */ function pantau_versi() { - return 'v2411.0.0'; + return 'v2412.0.0'; } } diff --git a/catatan_rilis.md b/catatan_rilis.md index 7e4b1aff..eabb7545 100644 --- a/catatan_rilis.md +++ b/catatan_rilis.md @@ -4,14 +4,6 @@ Di rilis v2411.0.0 berisi perbaikan yang diminta Komunitas Open Desa. #### Perbaikan Bug -1. [#430](https://github.com/OpenSID/pantau/issues/430) Perbaikan permission file logging ketika backup otomatis. -2. [#443](https://github.com/OpenSID/pantau/issues/443) Perbaikan simpan kordinat lat & lng kecamatan. -3. [#447](https://github.com/OpenSID/pantau/issues/447) Perbaikan pencarian pada halaman LayananDesa. -4. [#442](https://github.com/OpenSID/pantau/issues/442) Perbaikan fitur lokasi map kabupaten pengguna. -5. [#441](https://github.com/OpenSID/pantau/issues/441) Perbaikan cek kesesuaian data pada dabor saat ini masih belum valid karena data yang terpasang pada dasbor masih 0. - #### Penyesuaian Teknis -1. [#437](https://github.com/OpenSID/pantau/issues/437) Menambah file readme.md. -2. [#440](https://github.com/OpenSID/pantau/issues/440) Penyesuaian statistik pada pantau agar terlihat lebih infografik. -3. [#448](https://github.com/OpenSID/pantau/issues/448) Penyesuaian informasi datatable. \ No newline at end of file +1. [#458](https://github.com/OpenSID/pantau/issues/458) Mutahirkan daftar wilayah Papua Barat Daya. diff --git a/database/migrations/2024_11_12_133856_update_regions_for_papua_barat_daya.php b/database/migrations/2024_11_12_133856_update_regions_for_papua_barat_daya.php new file mode 100644 index 00000000..3875b937 --- /dev/null +++ b/database/migrations/2024_11_12_133856_update_regions_for_papua_barat_daya.php @@ -0,0 +1,72 @@ +insertOrIgnore([ + 'region_code' => '96', + 'region_name' => 'PAPUA BARAT DAYA', + 'new_region_name' => null, + 'keterangan' => 'Provinsi baru', + 'parent_code' => null, + 'created_at' => now(), + 'updated_at' => now(), + ]); + + $provinsi = [ + '92.01', // Kabupaten Sorong + '92.04', // Kabupaten Sorong Selatan + '92.05', // Kabupaten Raja Ampat + '92.09', // Kabupaten Tambrauw + '92.10', // Kabupaten Maybrat + '92.71' // Kota Sorong + ]; + + foreach ($provinsi as $prov) { + DB::table('tbl_regions') + ->where('region_code', $prov) + ->update([ + 'parent_code' => '96', + 'updated_at' => now() + ]); + } + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + DB::table('tbl_regions') + ->where('region_code', '96') + ->delete(); + + $provinsi = [ + '92.01', // Kabupaten Sorong + '92.04', // Kabupaten Sorong Selatan + '92.05', // Kabupaten Raja Ampat + '92.09', // Kabupaten Tambrauw + '92.10', // Kabupaten Maybrat + '92.71' // Kota Sorong + ]; + + foreach ($provinsi as $prov) { + DB::table('tbl_regions') + ->where('region_code', $prov) + ->update([ + 'parent_code' => '92' + ]); + } + } +};