Skip to content

How to run river migrations along with the "main" app's migrations? #427

Answered by bgentry
ribtoks asked this question in Q&A
Discussion options

You must be logged in to vote

I'm sorry for being unclear with the first question. What I meant was that golang-migrate stores a migration version in, let's say, golang-migrate table (exact name does not matter). So my question was if river used golang-migrate too (which it isn't, at this time) migration versions of the app and river could have collided. And if there was any kind of a "best practice" in eliminating such possibility "by design"? (e.g. intentionally using a different schema etc.)

Not sure if you've checked out the migration docs, but we have examples in there on how to extract the raw SQL for using with your migration framework of choice, or even run them within Go code. As for table name collisions, a…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ribtoks
Comment options

@bgentry
Comment options

Answer selected by ribtoks
@ribtoks
Comment options

@bgentry
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants