From cdafc30dbe57982844dd1b8fb3292c0013bd12ba Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 17 Jun 2019 09:54:22 +0300 Subject: Load initial data into h2 on bootRun --- src/main/resources/data-h2.sql | 9 +++++++++ src/main/resources/data.h2.sql | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 src/main/resources/data-h2.sql delete mode 100644 src/main/resources/data.h2.sql diff --git a/src/main/resources/data-h2.sql b/src/main/resources/data-h2.sql new file mode 100644 index 00000000..aff3e286 --- /dev/null +++ b/src/main/resources/data-h2.sql @@ -0,0 +1,9 @@ +INSERT INTO users(id, nick, passw) VALUES(0, 'Anonymous', 'password'); +INSERT INTO tags(tag_id, name) VALUES(2, 'juick'); +INSERT INTO reactions (like_id, description) VALUES (1, 'like'); +INSERT INTO reactions (like_id, description) VALUES (2, 'love'); +INSERT INTO reactions (like_id, description) VALUES (3, 'lol'); +INSERT INTO reactions (like_id, description) VALUES (4, 'hmm'); +INSERT INTO reactions (like_id, description) VALUES (5, 'angry'); +INSERT INTO reactions (like_id, description) VALUES (6, 'uhblya'); +INSERT INTO reactions (like_id, description) VALUES (7, 'ugh'); diff --git a/src/main/resources/data.h2.sql b/src/main/resources/data.h2.sql deleted file mode 100644 index aff3e286..00000000 --- a/src/main/resources/data.h2.sql +++ /dev/null @@ -1,9 +0,0 @@ -INSERT INTO users(id, nick, passw) VALUES(0, 'Anonymous', 'password'); -INSERT INTO tags(tag_id, name) VALUES(2, 'juick'); -INSERT INTO reactions (like_id, description) VALUES (1, 'like'); -INSERT INTO reactions (like_id, description) VALUES (2, 'love'); -INSERT INTO reactions (like_id, description) VALUES (3, 'lol'); -INSERT INTO reactions (like_id, description) VALUES (4, 'hmm'); -INSERT INTO reactions (like_id, description) VALUES (5, 'angry'); -INSERT INTO reactions (like_id, description) VALUES (6, 'uhblya'); -INSERT INTO reactions (like_id, description) VALUES (7, 'ugh'); -- cgit v1.2.3