Small fixes to makefile.
@@ -91,7 +91,8 @@ deps-test-ci: deps drop-test migrate-test minikube-ci
drop:
@-docker exec maestro_postgres_1 psql -d postgres -h localhost -p 5432 -U postgres -c "SELECT pg_terminate_backend(pid.pid) FROM pg_stat_activity, (SELECT pid FROM pg_stat_activity where pid <> pg_backend_pid()) pid WHERE datname='maestro';"
- @docker exec maestro_postgres_1 psql -d postgres -h localhost -p 5432 -U postgres -f scripts/drop.sql > /dev/null
+ @docker cp scripts/drop.sql maestro_postgres_1:.
+ @docker exec maestro_postgres_1 psql -d postgres -h localhost -p 5432 -U postgres -f drop.sql > /dev/null
@echo "Database created successfully!"
drop-test:
