Search⌘ K

Setting Up the Database

Explore how to set up and manage database migrations using Flyway and Slick in Scala-based HTTP APIs. Understand programmatic configuration, schema management, and migration application to support robust backend services.

Migrations

The database layer should provide programmatic access to the database and also manage changes in the database. The latter is called migrations or evolutions. We will use Flyway as the tool to manage our database schema.

Flyway uses raw SQL scripts that have to be put into a certain location and follow certain naming ...