From c7ff49bc64ae06f6d78c73f61e29d83b556ed32a Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Fri, 1 May 2020 23:55:23 +0200 Subject: [PATCH] Update data.sql to drop all existing entries at restart --- backend/src/main/resources/data.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/src/main/resources/data.sql b/backend/src/main/resources/data.sql index a9a33fb..eb174f0 100644 --- a/backend/src/main/resources/data.sql +++ b/backend/src/main/resources/data.sql @@ -1,3 +1,8 @@ +SET FOREIGN_KEY_CHECKS=0; + +DELETE FROM timetrack_user; +DELETE FROM role; + INSERT INTO role (id, `name`) VALUES (1, 'Admin'); @@ -10,3 +15,4 @@ INSERT INTO timetrack_user (id, firstname, lastname, password, username, role_id (3, 'Tim', 'Zieger' ,'$2y$10$pYGHZhoaelceImO7aIN4nOkWJBp.oqNGFYaRAonHkYF4u9ljqPelC', 'ziti', 1), (4, 'Simon', 'Kellner' ,'$2y$10$Puzm/Nr/Dyq3nQxlkXGIfubS5JPtXJSOf2e6mrQ6HhVYQN9YiQQsC', 'kesi', 1); +SET FOREIGN_KEY_CHECKS=1; \ No newline at end of file