-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Region África not found #20
Comments
@sumannath I'm also experiencing this issue, but it seems it occurs with PostgreSQL and not MySQL. |
I can confirm that running the seeder in MySQL (and MariaDB) seems to work fine but running it in SQLite (I use it for testing) throws the same exception. |
According to the documentation about updating JSON columns:
In other words, it's apparently a known limitation. |
@amharris Are you using PostgreSQL 9.5 or greater? If not, you may consider upgrading to solve this issue. |
@elcapo It's PostgreSQL 15, which is included in Laravel Sail (both the 8.1 and 8.2 |
same error pgsql 16
|
Any news? I have same with Postgre |
@adilbekes The issue still persists with Postgres. |
I have same issue using It seems the problem came from portugues Language seeder. Is there a way to ignore this language to make seeder work? |
Using composer to install and then running migrate:refresh --seed, I get the following error:
` Region África not found
at vendor/lwwcas/laravel-countries/src/database/seeders/Builder.php:87
83▕ ->first();
84▕
85▕ if ($response == null) {
86▕ DB::rollBack();
➜ 87▕ throw new Exception('Region ' . $region . ' not found');
88▕ }
89▕
90▕ CountryRegionTranslation::create([
91▕ 'lc_region_id' => $response->id,
28 database/seeders/DatabaseSeeder.php:16
Illuminate\Database\Seeder::call()
+34 vendor frames
63 artisan:35
Illuminate\Foundation\Console\Kernel::handle()`
The text was updated successfully, but these errors were encountered: