Importing database dump
You can import the database dump into the development environment in the following way:
- Copy the dump file to the database container:
docker cp dump.sql fkmtime-dev-database:/dump.sql;
- Enter the database container:
docker exec -it fkmtime-dev-database bash;
- Enter the psql shell:
psql -d fkm_time;
- Run the following command in the container:
DROP SCHEMA public CASCADE;
CREATE SCHEMA public;
- 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.