-
Notifications
You must be signed in to change notification settings - Fork 85
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
Postgrex.Error: ERROR (undefined_object): type "geometry" does not exist #15
Comments
as an update, I've also tried to use the git master (and done the new changes to configs), but I get the same error. |
From the error it looks like it could be that postgis isn't enabled for the database you are using. In psql or whatever admin app you are using for postgres you should run the command 'create extension postgis;' and then try again. I think that's the command. I'm going off memory at the moment. |
Thank you for the hint! :-) for reference, here's a solution (and the right postgres syntax), I've created a migration:
I'd suggest to put this in the README, it might be useful for others :P |
No problem. And yes, I should add that to the docs. I should also start doing it in a migration myself. I've been doing it the old fashioned way |
Per note from @apeacox felt#15
Hi there, I'm new to Elixir world :)
I'm trying to play with Phoenix framework, Ecto and Postgres. I needed geolocation and I've found this package. I've added dependencies to
mix.exs
:configured database:
then I've created the migration migration:
but when I run
mix ecto.migrate
I get this error:I'm almost sure I'm missing something right away, can someone help me with this problem?
thanks in advance :)
The text was updated successfully, but these errors were encountered: