ryanaidilp / sistem_absensi_pegawai

This website contains API Backend and employee data management for SiAP application. This website is built with Laravel, Tailwind CSS, Vue JS, and Inertia JS. This website also has an attendance page (QR Code) and a table to display employee attendance data.
GNU General Public License v2.0
179 stars 124 forks source link

General error: 1364 Field 'gender_id' doesn't have a default value #48

Closed agasmaulana closed 2 years ago

agasmaulana commented 2 years ago

Ini kenapa setelah saya jalankan perintah php artisan voyager:admin email_anda@mail.com --create kok timbul error seperti digambar ya? image

rizkifauzanakbar commented 2 years ago

mas @ryanaidilp tolong info untuk solved error di atas mas, terimakasih

ryanaidilp commented 2 years ago

tambahin default value ke kolom gender_id di file migration nya atau buat kolom nya jadi nullable. Dari exception nya udah jelas kan ya, pastiin urutannya juga sesuai (tabel gender harus udah migrate sebelum nambahin gender id ke tabel user).

rizkifauzanakbar commented 2 years ago

Sipppp makasih mas

On Sun, 11 Sep 2022, 14:51 Fajrian Aidil Pratama, @.***> wrote:

tambahin default value ke kolom gender_id di file migration nya atau buat kolom nya jadi nullable. Dari exception nya udah jelas kan ya, pastiin urutannya juga sesuai (tabel gender harus udah migrate sebelum nambahin gender id ke tabel user).

— Reply to this email directly, view it on GitHub https://github.com/ryanaidilp/sistem_absensi_pegawai/issues/48#issuecomment-1242910137, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASDLYWCLXIE3SH3PGATTWC3V5WFQHANCNFSM5ZXAZKZA . You are receiving this because you commented.Message ID: @.***>