-
Notifications
You must be signed in to change notification settings - Fork 127
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
Support Rust migrations from refinery_cli #188
Comments
Hi, and thanks for the interest! Yeah Rust Migrations are currently not supported by |
Oh well, that's actually a good solution too, I didn't even stop to consider it. My use case for the moment is simply creating tables in a freshly made PostgreSQL database running in Docker, with Rust migrations being ran by Rocket as a Adhoc Ignite function. I just felt like having to run my software to initialize the tables wasn't good practice and was considering using Also, considering we generate models for the project using I'm eventually considering running I'll keep your suggestion in mind though! Thanks for the fast reply. |
why not? it runs once and if it's already migrated |
Because currently the process is: It’s not such a big deal, really, but I think your approach with having a separate project to be able to run the migrations is cleaner |
Greetings,
As the title say, I'd like to suggest supporting Rust migrations as an enhancement for refinery_cli.
I'm actually not sure if I'm the one doing something wrong, but after a quick glance at the code and my attempt being met with
migration V1__Initial is missing from the filesystem
when trying to run the command on a directory that works perfectly fine when migrating from code, I'd assume it just isn't supported at the moment.Thanks for your great work, as someone with no experience with databases, refinery has been a lifesaver.
The text was updated successfully, but these errors were encountered: