From d5501c6ddfbeeb69d6e6bcc012085b3e3b43fa83 Mon Sep 17 00:00:00 2001 From: harisato Date: Mon, 3 Jun 2024 09:42:34 +0700 Subject: [PATCH] update chainid --- src/migrations/1717382328993-remove-old-chain.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/migrations/1717382328993-remove-old-chain.ts diff --git a/src/migrations/1717382328993-remove-old-chain.ts b/src/migrations/1717382328993-remove-old-chain.ts new file mode 100644 index 0000000..6e52611 --- /dev/null +++ b/src/migrations/1717382328993-remove-old-chain.ts @@ -0,0 +1,11 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class removeOldChain1717382328993 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(` + DELETE FROM Chain WHERE id = 4; + update Chain set chainId = "aura_6322-2" where id = 3;`); + } + + public async down(queryRunner: QueryRunner): Promise {} +}