aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/db/migration/V1.999__data.sql
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-29 00:45:31 +0300
committerGravatar Vitaly Takmazov2023-01-29 00:45:31 +0300
commitfbc5c1330679b12b09c6d970ee1750fa83f4cac4 (patch)
tree8966bd82155ac2413f4ef87717269e484ae407e9 /src/test/resources/db/migration/V1.999__data.sql
parent6cd35dbc723a64720c08a331ede9e605df11b8b4 (diff)
Move postgres db initialization to tests
Diffstat (limited to 'src/test/resources/db/migration/V1.999__data.sql')
-rw-r--r--src/test/resources/db/migration/V1.999__data.sql13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/resources/db/migration/V1.999__data.sql b/src/test/resources/db/migration/V1.999__data.sql
new file mode 100644
index 00000000..673b24d2
--- /dev/null
+++ b/src/test/resources/db/migration/V1.999__data.sql
@@ -0,0 +1,13 @@
+INSERT INTO users(id, nick, passw) VALUES(0, 'Anonymous', 'password');
+INSERT INTO users(id, nick, passw) VALUES(2, 'juick', 'password');
+INSERT INTO users(id, nick, passw) VALUES(5, 'archive', 'password');
+INSERT INTO tags(tag_id, name) VALUES(2, 'juick');
+alter sequence tags_tag_id_seq restart with 10;
+alter sequence users_id_seq restart with 10;
+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');