Skip to content

Commit bc4036b

Browse files
authored
Seed data queries (#38)
* add repeatable migration for webhook data seeding * add query to see test webhook data * fix syntax error * fix seed data
1 parent 6adeeee commit bc4036b

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
INSERT INTO test_webhook (username, event_timestamp, target_repo)
2+
VALUES (
3+
'octodemo',
4+
'2022-02-22 20:22:06.473408',
5+
'seed-data'
6+
);
7+
INSERT INTO test_webhook (username, event_timestamp, target_repo)
8+
VALUES (
9+
'octodemo',
10+
'2022-02-22 20:23:17.073389',
11+
'seed-data'
12+
);
13+
INSERT INTO test_webhook (username, event_timestamp, target_repo)
14+
VALUES (
15+
'octodemo',
16+
'2022-02-22 20:23:25.557446',
17+
'seed-data'
18+
);
19+
INSERT INTO test_webhook (username, event_timestamp, target_repo)
20+
VALUES (
21+
'octodemo',
22+
'2022-04-20 20:23:09.915988',
23+
'seed-data'
24+
);
25+
INSERT INTO test_webhook (username, event_timestamp, target_repo)
26+
VALUES (
27+
'octodemo',
28+
'2022-04-20 20:33:05.863319',
29+
'seed-data'
30+
);
31+
INSERT INTO test_webhook (username, event_timestamp, target_repo)
32+
VALUES (
33+
'octodemo',
34+
'2022-04-20 20:33:05.863738',
35+
'seed-data'
36+
);

sql/queries/webhook-events.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SELECT *
2+
FROM test_webhook;

0 commit comments

Comments
 (0)