mirror of
https://github.com/docmost/docmost.git
synced 2026-05-07 06:23:06 +08:00
1d620eba49
* reason: due to typeorm generated column metadata bug
14 lines
456 B
TypeScript
14 lines
456 B
TypeScript
import { MigrationInterface, QueryRunner } from 'typeorm';
|
|
|
|
export class AddTsvectorColumn1706450034470 implements MigrationInterface {
|
|
name = 'AddTsvectorColumn1706450034470';
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "pages" ADD "tsv" tsvector`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "pages" DROP COLUMN "tsv"`);
|
|
}
|
|
}
|