Migration File: 2022_06_04_035517_create_menus_tables.php
chanurholis opened this issue · 3 comments
chanurholis commented
SQLSTATE[HY000]: General error: 1824 Failed to open the referenced table 'typicms_pages' (SQL: alter table `typicms_menulinks` add constraint `typicms_menulinks_page_id_foreign` foreign key (`page_id`) references `typicms_pages` (`id`) on delete cascade)
at vendor/laravel/framework/src/Illuminate/Database/Connection.php:742
738▕ // If an exception occurs when attempting to run a query, we'll format the error
739▕ // message to include the bindings with SQL, which will make this exception a
740▕ // lot more helpful to the developer instead of just the database's errors.
741▕ catch (Exception $e) {
➜ 742▕ throw new QueryException(
743▕ $query, $this->prepareBindings($bindings), $e
744▕ );
745▕ }
746▕ }
+9 vendor frames
10 database/migrations/2022_06_04_035517_create_menus_tables.php:38
Illuminate\Support\Facades\Facade::__callStatic()
+33 vendor frames
44 artisan:37
Illuminate\Foundation\Console\Kernel::handle()
```
chanurholis commented
I found this error when I init project
sdebacker commented
Thank you for reporting, it's now fixed.
chanurholis commented
wow, it's cool. Thanks.