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

Warning when reuse the type created in another migration #73

Open
marinho10 opened this issue May 9, 2019 · 0 comments
Open

Warning when reuse the type created in another migration #73

marinho10 opened this issue May 9, 2019 · 0 comments

Comments

@marinho10
Copy link

marinho10 commented May 9, 2019

Recently i had a problem.
I created a type, like:

import EctoEnum
defenum(MyApp.UserTypeEnum, :user_type, [
  :super_admin,
  :admin
])

And after, I created the migration that add the type and use this type in one column. Until this step everything works fine.

The problem/warning happens when I make one migration that uses this column (with new type) in a query...

[warn] %Postgrex.Query{cache: :reference, columns: nil, name: "ecto_11234", param_formats: nil, param_oids: nil, param_types: nil, ref: nil, result_formats: nil, result_oids: nil, result_types: nil, statement: "SELECT p0.\"id\", p0.\"user_type\" ... ", types: nil} uses unknown oid 510629causing bootstrap

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

1 participant