import fs from 'node:fs'; import path from 'node:path'; import { MigrationInterface, QueryRunner } from 'typeorm'; const sql = fs.readFileSync(path.join(__dirname, '../../deploy/sql/hxoa.sql'), 'utf8'); export class InitData1707996695540 implements MigrationInterface { public async up(queryRunner: QueryRunner): Promise { await queryRunner.query(sql); } public async down(queryRunner: QueryRunner): Promise {} }