Skip to main content

Importing database dump

You can import the database dump into the development environment in the following way:

  1. Copy the dump file to the database container:
docker cp dump.sql fkmtime-dev-database:/dump.sql;
  1. Enter the database container:
docker exec -it fkmtime-dev-database bash;
  1. Enter the psql shell:
psql -d fkm_time;
  1. Run the following command in the container:
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
  1. Exit psql shell and run the following command in the Docker container:
psql -d fkm_time < dump.sql;

That's it! You have successfully imported the database dump into the development environment.