Importing database dump
You can import the database dump into the development environment in the following way. Run the commands in the root directory of the FKMTime repository, with the dev stack running.
- Clear the development database:
docker compose exec database psql -d fkm_time -c 'DROP SCHEMA public CASCADE; CREATE SCHEMA public;'
- Import the dump:
docker compose exec -T database psql -d fkm_time < dump.sql
- Restart the backend, so it brings the schema up to date:
docker compose restart backend
That's it! You have successfully imported the database dump into the development environment.