Skip to content

Commit

Permalink
#412 Perbaiki error contoh data website demo saat intalasi awal.
Browse files Browse the repository at this point in the history
  • Loading branch information
andifahruddinakas authored May 30, 2022
1 parent 029be28 commit b9b8a7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions catatan_rilis.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Terima kasih pada [untuk diisi] yang terus berkontribusi. Terima kasih pula pada
2. [#391](https://github.com/OpenSID/OpenDK/issues/391) Perbaiki gagal upload foto profil user.
3. [#402](https://github.com/OpenSID/OpenDK/issues/402) Perbaiki artikel baru tidak tampil dan sesuaikan urutannya.
4. [#400](https://github.com/OpenSID/OpenDK/issues/400) Perbaiki select data penyakit tidak sesuai dengan inputan pada form ubah data modul Epidemi Penyakit.
5. [#412](https://github.com/OpenSID/OpenDK/issues/412) Perbaiki error contoh data website demo saat intalasi awal.


#### TEKNIS
Expand Down
4 changes: 4 additions & 0 deletions database/seeds/Demo/DemoDasDataDesaTableSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class DemoDasDataDesaTableSeeder extends Seeder
*/
public function run()
{
DB::statement('SET FOREIGN_KEY_CHECKS=0;');

$profil = Profil::first();

DB::table('das_data_desa')->truncate();
Expand Down Expand Up @@ -176,5 +178,7 @@ public function run()
'website' => '',
],
]);

DB::statement('SET FOREIGN_KEY_CHECKS=1;');
}
}

0 comments on commit b9b8a7b

Please sign in to comment.