Extremely fast lightweight plain sql migration tool without pain. Tested on PostgreSQL 11.0.
- Plain sql migrations support
- Extremely fast
- Locks
- Tests
- sbt plugin
- Rollbacks
- Diff
- Truncate
resolvers += Resolver.bintrayRepo("fcomb", "maven")
libraryDependencies += "io.fcomb" %% "db-migration" % "0.6.3"
Add migrations as a plain sql files into src/main/resources/sql/migrations
with name format V{\d+}__{\w+}.sql
(V1427135578__CreateUsers.sql
for example).
Then apply your migrations:
import io.fcomb.db.Migration
Migration.run("jdbc:postgresql://127.0.0.1:5432/fcomb", "postgres", "")