-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
064e0cc
commit 63020f6
Showing
7 changed files
with
697 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = class Data1716214689738 { | ||
name = 'Data1716214689738' | ||
|
||
async up(db) { | ||
await db.query(`CREATE TABLE "price_stored" ("id" character varying NOT NULL, "new_price" numeric NOT NULL, "block" integer NOT NULL, "timestamp" numeric NOT NULL, CONSTRAINT "PK_3d68b3171d32422894302e2a84a" PRIMARY KEY ("id"))`) | ||
await db.query(`CREATE TABLE "average_price_stored" ("id" character varying NOT NULL, "new_average_price" numeric NOT NULL, "block" integer NOT NULL, "timestamp" numeric NOT NULL, CONSTRAINT "PK_aea4f921e532918be63485242ab" PRIMARY KEY ("id"))`) | ||
} | ||
|
||
async down(db) { | ||
await db.query(`DROP TABLE "price_stored"`) | ||
await db.query(`DROP TABLE "average_price_stored"`) | ||
} | ||
} |
Oops, something went wrong.