Skip to content

Commit 45fb029

Browse files
authored
fix: add harcoded monad price (#461)
1 parent d863dc3 commit 45fb029

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { MigrationInterface, QueryRunner } from "typeorm";
2+
3+
export class MonadPrice1763557964557 implements MigrationInterface {
4+
name = "MonadPrice1763557964557";
5+
6+
public async up(queryRunner: QueryRunner): Promise<void> {
7+
await queryRunner.query(`
8+
INSERT INTO "public"."historic_price" ("baseCurrency", "quoteCurrency", date, price)
9+
values ('MON', 'usd', '2025-11-23', 0.03), ('MON', 'usd', '2025-11-24', 0.03);
10+
`);
11+
}
12+
13+
public async down(queryRunner: QueryRunner): Promise<void> {
14+
await queryRunner.query(`
15+
DELETE FROM "public"."historic_price" WHERE "baseCurrency" = 'MON' and date in ('2025-11-23', '2025-11-24');
16+
`);
17+
}
18+
}

0 commit comments

Comments
 (0)