Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
chore(issue-34): adiciona failsafe para tabelas "_product"
Browse files Browse the repository at this point in the history
  • Loading branch information
jefersonhuan committed Jul 30, 2024
1 parent 0e74c0d commit bf45f7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions database/seed/reset.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
delete from order_products op;
delete from "order";

delete from cart_products cp;
delete from cart c;

1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ services:
volumes:
- ./data:/var/lib/postgresql/data:rw
- ./database/seed/00.sql:/docker-entrypoint-initdb.d/00.sql:rw
- ./database/seed/reset.sql:/docker-entrypoint-initdb.d/reset.sql:rw
networks:
- go-food-tech-challenge-network

Expand Down

0 comments on commit bf45f7d

Please sign in to comment.