Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Automatic Rollback after migrations are applied #1051

Unanswered
konsalex asked this question in Q&A
Discussion options

Hey folks,

Currently we ship our software, call it Acme Inc., through container images, that connect to external PG instances.

How can we work with the following scenario:

  1. Users use Acme_Inc@v0.0.1
  2. Migrations are executed on container init
  3. Users spin up new container Acme_Inc@0.0.2
  4. Migrations are applied
  5. Something breaks in the logic and they decide to re-use Acme_Inc@0.0.1

Does the CLI knows that the migrations now should perform a down operation? Or are we responsible to perform this? If so, how would you recommend approaching this?

I tried to find something in the docs, but the only thing I could find was that you just keep track for versions used.

You must be logged in to vote

Replies: 0 comments

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

AltStyle によって変換されたページ (->オリジナル) /