اذهب إلى المحتوى

Ayat Elrrahmane

الأعضاء
  • المساهمات

    1
  • تاريخ الانضمام

  • تاريخ آخر زيارة

كل منشورات العضو Ayat Elrrahmane

  1. عند العمل على تهجير جداول في laravel ظهر لي هذا الخطأ مع انه تم انشاء الجدول في قاعدة البيانات اي ان عملية تهجير تمت بنجاح الخطأ : SQLSTATE[HY000]: General error: 1005 Can't create table `cosultation`.`evaluers` (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table `evaluers` add constraint `evaluers_id_client_foreign` foreign key (`id_client`) references `clients` (`id`)) at D:\PROJET\exemple\vendor\laravel\framework\src\Illuminate\Database\Connection.php:760 756▕ // If an exception occurs when attempting to run a query, we'll format the error 757▕ // message to include the bindings with SQL, which will make this exception a 758▕ // lot more helpful to the developer instead of just the database's errors. 759▕ catch (Exception $e) { ➜ 760▕ throw new QueryException( 761▕ $query, $this->prepareBindings($bindings), $e 762▕ ); 763▕ } 764▕ } 1 D:\PROJET\exemple\vendor\laravel\framework\src\Illuminate\Database\Connection.php:545 PDOException::("SQLSTATE[HY000]: General error: 1005 Can't create table `cosultation`.`evaluers` (errno: 150 "Foreign key constraint is incorrectly formed")") ماهو سبب ظهور هذا الخطا وهل تجاهله يؤثر على عملي مرة اخرى ، وشكرا
×
×
  • أضف...