migrations
#1708
Replies: 1 comment
-
I finally figured it out! Your schema file needs to be in your migrations folder. Eg for Goose:
Then in your version: "2"
sql:
- schema: "sql/migrator/migrations"
queries: "sql/queries"
engine: "postgresql"
... I agree that the docs need to be updated, as this wasn't at all obvious to me for months. |
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
-
Hi, I am confused about migrations. I read in the docs that
sqlc
executes migration:How can I do this? It's not part of the getting started guide, and It's not further explained. The generated code doesnt contain migration functions either.
Beta Was this translation helpful? Give feedback.
All reactions