drehimself / laravel-ecommerce-example

Code for YouTube series on building a Laravel E-Commerce application.
https://www.youtube.com/watch?v=o5PWIuDTgxg&list=PLEhEHUEU3x5oPTli631ZX9cxl6cU_sDaR
1.02k stars 585 forks source link

Problem while migrating #137

Open malikKadri2010 opened 2 years ago

malikKadri2010 commented 2 years ago

I am getting after I run "php artisan ecommerce:install":

Algolia credentials incorrect. Your products table is NOT seeded correctly. If you are not using Algolia, remove Laravel\Scout\Searchable from App\Product

In Connection.php line 669:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'policy_name' in 'field list' (SQL: inser
t into data_types (slug, name, display_name_singular, display_name_plural, icon, mo del_name, policy_name, controller, generate_permissions, description, updated_at, cr eated_at) values (posts, posts, Post, Posts, voyager-news, TCG\Voyager\Models\Post, TCG\Voyager
\Policies\PostPolicy, , 1, , 2022-10-27 23:58:18, 2022-10-27 23:58:18))

In Exception.php line 18:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'policy_name' in 'field list'

In PDOConnection.php line 82:

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'policy_name' in 'field list'