Skip to content

Commit

Permalink
feat: h2 일때만 truncate 가 작동하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
be-student committed Apr 23, 2023
1 parent cf774d6 commit 2511690
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions web/src/main/resources/truncate.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
SET FOREIGN_KEY_CHECKS = 0;
SELECT H2VERSION()
FROM DUAL;
SET
FOREIGN_KEY_CHECKS = 0;
TRUNCATE TABLE CAR;
TRUNCATE TABLE WINNER;
TRUNCATE TABLE GAME;
SET FOREIGN_KEY_CHECKS = 1;
SET
FOREIGN_KEY_CHECKS = 1;

0 comments on commit 2511690

Please sign in to comment.