15 lines
439 B
TypeScript
15 lines
439 B
TypeScript
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<void> {
|
|
await queryRunner.query(sql);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {}
|
|
}
|