Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ganti kode wilayah menggunakan kode wilayah Kemendagri #6 #14

Merged
merged 3 commits into from
Jul 21, 2019
Merged

Ganti kode wilayah menggunakan kode wilayah Kemendagri #6 #14

merged 3 commits into from
Jul 21, 2019

Conversation

xiaocids
Copy link
Contributor

@xiaocids xiaocids commented Jul 19, 2019

How To update with 6aab4b:

  • composer update

  • php artisan migrate

  • php artisan db:seed --class=RefWilayahTableSeeder

  • Edit all provinsi_id, kabupaten_id, kecamatan_id and desa_id values with Kode Kemendagri format.

@eddieridwan
Copy link
Contributor

eddieridwan commented Jul 20, 2019

@xiaocids terima kasih.

php artisan migrate --seed berhasil. Tetapi bagaimana dengan instalasi OpenDK yg sudah operasional -- bagaimana cara updatenya? Karena 'migrate --seed' akan menghapus data yg sudah ada di tabel yg 'di-seed'.

Atau mungkin DatabaseSeeder.php diubah supaya hanya menjalankan RefWilayahTableSeeder.php?

@eddieridwan
Copy link
Contributor

Dan apakah seharusnya tabel2 berikut dihapus?

  • ref_provinsi
  • ref_kabupaten
  • ref_kecamatan
  • ref_desa

@xiaocids
Copy link
Contributor Author

Pak @eddieridwan Untuk cara update dan migrate sudah saya perbaiki di komentar sebelumnya. Untuk tabel2 wilayah yang tidak dipakai saran saya dihapus saja berikut class modelnya.

@eddieridwan eddieridwan merged commit 56ef787 into OpenSID:master Jul 21, 2019
@eddieridwan
Copy link
Contributor

Terima kasih, sudah di gabung ke master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants