diff --git a/app/Models/Profil.php b/app/Models/Profil.php index 35cdf5977..f84a27164 100644 --- a/app/Models/Profil.php +++ b/app/Models/Profil.php @@ -56,15 +56,10 @@ class Profil extends Model 'file_struktur_organisasi', 'file_logo', 'sambutan', - 'socialmedia', 'visi', 'misi', ]; - protected $cast = [ - 'socialmedia' => 'array', - ]; - public static function getProfilTanpaDataUmum() { $data_umums = DataUmum::get(); diff --git a/catatan_rilis.md b/catatan_rilis.md index 8403b4482..4288123a2 100644 --- a/catatan_rilis.md +++ b/catatan_rilis.md @@ -10,9 +10,9 @@ Terima kasih pada @uddinmtm telah ikut berkontribusi. #### BUG 1. [#932](https://github.com/OpenSID/OpenDK/issues/932) Sesuaikan tombol batal dan kembali. - +2. [#980](https://github.com/OpenSID/OpenDK/issues/980) Hapus media sosial pada profile #### TEKNIS 1. [#982](https://github.com/OpenSID/OpenDK/issues/982) Perbaikan celah di API list penduduk dan kk. -2. [#1006](https://github.com/OpenSID/OpenDK/issues/1006) Template Issue Label Fitur \ No newline at end of file +2. [#1006](https://github.com/OpenSID/OpenDK/issues/1006) Template Issue Label Fitur diff --git a/database/migrations/2024_07_21_024936_delete_socialmedia_tbl_profil.php b/database/migrations/2024_07_21_024936_delete_socialmedia_tbl_profil.php new file mode 100644 index 000000000..ae3edc9f4 --- /dev/null +++ b/database/migrations/2024_07_21_024936_delete_socialmedia_tbl_profil.php @@ -0,0 +1,32 @@ +dropColumn('socialmedia'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('das_profil', function (Blueprint $table) { + $table->json('socialmedia')->nullable(); + }); + } +}; diff --git a/database/seeders/DasProfilTableSeeder.php b/database/seeders/DasProfilTableSeeder.php index 1cd17cd4f..b3d245dbd 100644 --- a/database/seeders/DasProfilTableSeeder.php +++ b/database/seeders/DasProfilTableSeeder.php @@ -82,7 +82,6 @@ public function run() 'file_logo' => null, 'visi' => null, 'misi' => null, - 'socialmedia' => json_encode($socialmedia), 'created_at' => now(), 'updated_at' => now(), ]); diff --git a/resources/views/data/profil/form_edit.blade.php b/resources/views/data/profil/form_edit.blade.php index 89007e366..6b66bad2b 100644 --- a/resources/views/data/profil/form_edit.blade.php +++ b/resources/views/data/profil/form_edit.blade.php @@ -144,46 +144,6 @@ -