Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint (SQL: alter table `lessons` add constraint `lessons_section_id_foreign` foreign key (`section_id`) references `sections` (`id`) on delete no action)
- at /Users/kardashov/projects/panda-school/vendor/laravel/framework/src/Illuminate/Database/Connection.php: 664
- 660: // If an exception occurs when attempting to run a query, we'll format the error
- 661: // message to include the bindings with SQL, which will make this exception a
- 662: // lot more helpful to the developer instead of just the database's errors.
- 663: catch (Exception $e) {
- 664: throw new QueryException(
- 665: $query, $this->prepareBindings($bindings), $e
- 666: );
- 667: }
- 668:
- 669: return $result;
- Exception trace:
- 1 PDOException::("SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint")
- /Users/kardashov/projects/panda-school/vendor/laravel/framework/src/Illuminate/Database/Connection.php : 458
- 2 PDOStatement::execute()
- /Users/kardashov/projects/panda-school/vendor/laravel/framework/src/Illuminate/Database/Connection.php : 458
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement