Menu

Post image 1
Post image 2
1 / 2
6

aconcan

Hacker News·about 1 month ago
#0z9rnRDq
Reading 0:00
15s threshold

A single command to roll back applied migrations with Flyway Community Edition, no license, no undo command, no crying in the club. If you’ve ever priced Flyway Teams just for the undo command, you know what I’m talking about. Managed rollback functionality is the most delectable morsel that lives behind the Flyway paywall, and it’s the one feature everyone wants at 2am when a migration hits the fan in prod. The Community edition gives you migrate , info , validate , repair , and stubs its cigarette out in your eye when you ask it to go backwards. A solution you ask? It turns out you don’t need the paid undo , you just need to be a little bit devious about what “rollback” actually is . The following rollback implementation is achieved entirely via Flyway commands, without running any SQL directly against the database via a separate driver (#minimalism). Here’s how it works, buckle up girls. The Core Concept: Rollback is just Migration in a Wig Here’s the mental unlock.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More