11 lines
443 B
TypeScript
11 lines
443 B
TypeScript
|
import { MigrationInterface, QueryRunner } from 'typeorm';
|
||
|
|
||
|
export class MakePerpHypertable1627606236170 implements MigrationInterface {
|
||
|
async up(queryRunner: QueryRunner): Promise<void> {
|
||
|
await queryRunner.query("SELECT create_hypertable('perp_sequence_number', 'loadTimestamp');");
|
||
|
await queryRunner.query("SELECT create_hypertable('perp_event', 'loadTimestamp');");
|
||
|
}
|
||
|
|
||
|
async down(queryRunner: QueryRunner): Promise<void> {}
|
||
|
}
|