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