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
mix ecto.migrate: "migration runner process" #1298
Comments
|
Can you provide a simple app that reproduces the error? I am thinking you are using tasks or something of sorts in your migrations. |
|
Please let me know if you can have a way to reproduce this because I cannot. :) I will gladly reopen the issue once we have a mechanism, thank you! |
|
Hey Jose, I've just been speaking with gazler on irc about this, and I've had the same problem and resolved it. It occurs when you try to do migration steps outside of the change function (or up/down functions i guess, I didnt try). This migration replicates the issue: Hope this helps you @Lemures |
|
same here when a migration is created: with model: throws backs:
|
|
@BennyHallett is correct: doing this fixes it and yields the expected:
|
|
I ran into a similar issue. The problem was user error — I had a malformed migration — but I think it would be helpful if the error message provided a better hint. |
|
@codecakes, @BennyHallett thank you guys, it solved my problem. |
|
I had the same blasted problem in my migration file. Thanks for posting what was wrong! |
|
The only fix I understand from the above is: make the index unique.
|
|
@wdiechmann This issue doesn't have anything to do with a unique index, but rather that a migration didn't exist within a function. Can't run migration steps at the model level. |
|
hmm - then how come when I changed (I apologise for barking up the wrong tree - but find my error somewhat justified, apart from being a hopeless n00b obviously) :( |
|
Sounds like a different error then. Should ask on the Elixir Forums. |
|
I had forgot "def change" in my migration and that's the error I received - just as a hint. |
I did "def change" but forgot to add "do" ant it yielded same error |
Hello,
Just started to use Elixir and Phoenix. I'm currently doing the simplest of thing for a web app but look like my ecto is acting up. Trying to migrate to my database.
I've try to reinstall my ecto deps.
Environment
Current behavior
mix ecto.migrate
Expected behavior
well run would be a good behavior.
The text was updated successfully, but these errors were encountered: