How to set up database for local testing
# start up postgres docker container (optional; instead you can create atum_db on your local postgres instance)
docker run --name=atum_db -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=atum_db -p 5432:5432 -d postgres:16
# migrate scripts
sbt flywayMigrate
# kill & remove docker container (optional; only if using dockerized postgres instance)
docker kill atum_db
docker rm atum_db
- create database
atum_db
- migrate scripts
sbt flywayMigrate
In case some structures are already present in the database, you can use
sbt flywayClean
to remove them or
sbt flywayBaseline
to set the current state as the baseline.