You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**when run seeder on existing database using php artisan db:seed, throws error like below **
CategoryTableSeeder : SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY' (SQ L: insert into category_translations
ChannelTableSeeder SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-1' for key 'PRIMARY' ( SQL: insert into channel_currencies
I think, you should add line DB::table('channel_currencies')->delete(); for channel_currencies table and for other tables as well in CategoryTableSeeder & ChannelTableSeeder.
The text was updated successfully, but these errors were encountered:
**when run seeder on existing database using
php artisan db:seed
, throws error like below **CategoryTableSeeder :
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY' (SQ L: insert into category_translations
ChannelTableSeeder
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-1' for key 'PRIMARY' ( SQL: insert into channel_currencies
I think, you should add line
DB::table('channel_currencies')->delete();
for channel_currencies table and for other tables as well in CategoryTableSeeder & ChannelTableSeeder.The text was updated successfully, but these errors were encountered: