Skip to content

Commit

Permalink
Pre-insert some currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ofux committed Oct 30, 2023
1 parent 6a2d18f commit e889d1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions migrations/2023-10-30-154132_insert-some-currencies/down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SELECT
1;
7 changes: 7 additions & 0 deletions migrations/2023-10-30-154132_insert-some-currencies/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
INSERT INTO
"public"."crypto_usd_quotes" ("currency", "price", "updated_at")
VALUES
('eth', 1816.97, '2023-10-30 15:00:00'),
('op', 1.4, '2023-10-30 15:00:00'),
('apt', 6.78, '2023-10-30 15:00:00') ON CONFLICT ("currency")
DO NOTHING;

0 comments on commit e889d1b

Please sign in to comment.