-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Help to get migrations to run on Waterline standalone #7231
Comments
@r2g Thanks for posting! We'll take a look as soon as possible. In the mean time, there are a few ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly. For help with questions about Sails, click here. |
Gonna +1 this question cause I too am very confused. Although it's a very cool MVC framework, using the full Sails package is way overkill for what I need to do (no need for controllers, views, etc. Just in need a solid ORM, which it appears waterline is) Everything seems fairly straightforward except: how do you sync db schema? Or run migrations/seeds when using the standalone waterline? Sequelize, TypeORM, Prisma (the 3 I've messed around with) all seem to expose a CLI command or at least the ability to run migrations/sync schema programmatically, but those abilities seem very obfuscated within... sails? waterline? waterline-postgresql? Not meaning to sound critical because I do appreciate the work the Sails team does very much, just kind of in a black hole of "what do I do now?" if I can't even get the db schema populated. Googling yields next to nil questions on the subject, and fewer answers. I'd even be happy to explore the idea of a PR that would add the needed functions/commands, but could use some help getting pointed in the direction of where all that magic happens now (the functionality clearly exists within Sails since it does what it should during Or... if I just suck at googling and this is something super obvious like Thanks kindly 😄 |
Node version: (18.0.0)
DB adapter & version (sails-postgresql@4.0.0):
I kindly require assistance to get migrations to run on waterline standalone version 0.15.0
My config is as follows:
My models:
The bootstrap file:
My package.json:
The issue I am facing is that when I run the bootstrap file, I get the error below:
Unexpected error from database adapter: relation "public.user" does not exist
Any assistance on this is highly appreciated.
Error Stack:
The text was updated successfully, but these errors were encountered: