sapy
sapy

Reputation: 9592

Revert last migration using flyway

flyway has a task called ['Undo']1 that's supposed to revert last migration. But the flyway jar (flyway-core-4.2.0 sources.jar!\org\flywaydb\core\Flyway.java)doesn't have that method so when I run gradlew flywayUndo , I get following error . But when I run gradlew flywayInfo it works fine as the info method exists in the jar. How to undo last mighration using flyway gradle jar ?

Task 'flywayUndo' not found in project ':applications/XXXXXX'. Some candidates are: 'flywayInfo'.

Upvotes: 2

Views: 3552

Answers (1)

Stanislav
Stanislav

Reputation: 28106

flywayUndo task is only available in paid versions of Flyway. You can see this here. Undo is available only for pro and enterprise versions of framework.

Upvotes: 4

Related Questions