Skip to content
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

Fails on PostGIS enabled databases because geography isnt a known type of DBAL #12

Open
securit opened this issue Apr 29, 2021 · 3 comments

Comments

@securit
Copy link

securit commented Apr 29, 2021

Any chance you can add geography and geometry as valid types? There is a good discussion on this here https://laracasts.com/discuss/channels/general-discussion/doctrinedbal-how-to-add-data-types-when-using-xethronmigrations-generator

Doctrine\DBAL\Exception

Unknown database type geography requested, Doctrine\DBAL\Platforms\PostgreSQL100Platform may not support it.

at vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php:454
450▕
451▕ $dbType = strtolower($dbType);
452▕
453▕ if (! isset($this->doctrineTypeMapping[$dbType])) {
➜ 454▕ throw new Exception(
455▕ 'Unknown database type ' . $dbType . ' requested, ' . static::class . ' may not support it.'
456▕ );
457▕ }
458▕

  +28 vendor frames

29 artisan:35
Illuminate\Foundation\Console\Kernel::handle()

laravel on  Eight [?] is 📦 v1.9.4 via ⬢ v15.8.0 via 🐘 v8.0.3 on 🐳 v20.10.5 took 4s

@jasonmccreary
Copy link
Collaborator

Sure. I am not familiar with these personally. Do you want to try opening a PR? Or you can add more clarity around the column type and desired Faker data you wish to see this package generate.

@securit
Copy link
Author

securit commented May 5, 2021

Geographic and geometry data types are standard types within Laravel. I guess the question should really be, why aren't they supported natively ;)
https://laravel.com/docs/8.x/migrations#available-column-types

@jasonmccreary
Copy link
Collaborator

Thanks. But that doesn't really answer my question.

[what are] the column type and desired Faker data you wish to see this package generate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants