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
Migrations do not run #388
Comments
This is the first I've heard of anyone running into this problem. Do you have a public repo I could pull down and try out? Thanks! |
Hi Paul, thanks for the quick reply. Just created a new app and uploaded to https://github.com/paulosuzart/my_blog2. The There is just one migration as simple as the official tutorial on the framework page. This is the lucky dev output and it open the browser as expected. Bu the
Here the postgres database.
Hope this can bring more context to the possible issue. I'll try harder to see if I can find anything. Regards |
I cloned it and it ran ok for me. I'm not sure why it didn't run at all with no output. What OS and Crystal version are you using? One thing you may want to try is switching lucky_migrator from The master branch has a couple fixes that may make it work. If that doesn't work hopefully we can figure out what's different about your setup and gets things working for you :) |
Hi @paulcsmith , just tried your suggestion. Nothing makes it run o.0 Here my crystal runnint at my
After upgrading to master branch of migrator, I tried with no success.
and it prints a blank line at Thank you |
@paulcsmith Just found the thing. Update my pg_hba.conf with the following entry and now it worked:
Sorry for the confusion. But as it worked with Regards |
No problem! I'm glad you got it working 👍 |
Hi, I started to follow the tutorial and Lucky as able to create my development database (also able to drop it). Everything is fine until I generate a new migration using:
lucky gen.migration CreateUsers
and then trying to apply it withlucky db.migrate
I get no tables in the database.The migration is pretty simple and the project is brand new with no other changes. Migration can be seen here https://gist.github.com/paulosuzart/eb859d41193a683df09e2091d5644a79
I'm using postgres 9.5.7 and lucky v0.9.2. Anyone facing the same?
Regards
The text was updated successfully, but these errors were encountered: