Replies: 3 comments
-
|
looks like "hidden feature" was introduced in #242 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I agree with you. This feature is the reason why we are using this library for some of us. It should be well documented. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I'm happy to review any contributions in this regard |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello,
Context
So I was looking for a npm package for handling postgres migrations. One of the first packages that I found was
node-pg-migrate. It was also referenced in https://github.com/gajus/slonik#user-content-slonik-migrations.After quickly checking docs I almost rejected
node-pg-migratebecause I assumed that I can't write my migrations in SQL. Evenmigration-file-languagedescribed in https://github.com/salsita/node-pg-migrate/blob/master/docs/cli.md doesn't mentionsql.Luckily I came across this article https://synvinkel.org/notes/node-postgres-migrations and discovered that I can actually write my migrations in SQL. Also discovered that when
migrationsfolder contain.sqlfile thennode-pg-migrate createwill automatically also create.sqlfiles.Question
Why are you hiding this cool feature? If I didn't stumble upon above mentioned article I would probably not use this cool library. You should really consider documenting it somewhere.
Final words
That being said - I plan to use
node-pg-migratein my nodejs project(s) together with sql migrations :) Other feature that I love is that you can define schema, where migrations table lives.Beta Was this translation helpful? Give feedback.
All reactions