Skip to content

Playing with the database

FKD13 edited this page Oct 30, 2022 · 8 revisions

Database migrations

A gradle task is available for all migrations. Make sure you have set up a working database first. For that, see getting started

Exporting the database

To create a dump that can be quickly restored use the following command:

pg_dump -U telraam_user -d telraam_dev --inserts --rows-per-insert=2000 -Ft -f dump.sql

Restoring can be done with (Make sure you work with a clean database):

pg_restore -U telraam_user -d telraam_dev dump.sql --disable-triggers
Clone this wiki locally