12 lines
396 B
TypeScript
12 lines
396 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class AddExtension1627606235010 implements MigrationInterface {
|
|
async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query('CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;');
|
|
}
|
|
|
|
async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query('DROP EXTENSION timescaledb;');
|
|
}
|
|
}
|