Error Migration Database
Opened this issue · 0 comments
Illuminate\Database\QueryException : SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (laravel
.perpanjangan
, CONSTRAINT perpanjangan_id_konten_foreign
FOREIGN KEY (id_konten
) REFERENCES konten
(id
) ON DELETE CASCADE) (SQL: insert into perpanjangan
(status
, jumlah_hari
, alasan
, id_konten
) values (verifikasi, 30, Quae in quis in repudiandae sed alias ut., 3))
at C:\Users\User\Desktop\donasirest\vendor\laravel\framework\src\Illuminate\Database\Connection.php:669
665| // If an exception occurs when attempting to run a query, we'll format the error
666| // message to include the bindings with SQL, which will make this exception a
667| // lot more helpful to the developer instead of just the database's errors.
668| catch (Exception $e) {
669| throw new QueryException(
670| $query, $this->prepareBindings($bindings), $e
671| );
672| }
673|
Exception trace: