mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
20 lines
548 B
TypeScript
20 lines
548 B
TypeScript
|
|
import { MigrationInterface, QueryRunner, TableColumn } from 'typeorm';
|
||
|
|
|
||
|
|
export class AddSpecFilesMapToPlugins1775060000000 implements MigrationInterface {
|
||
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.addColumn(
|
||
|
|
'plugins',
|
||
|
|
new TableColumn({
|
||
|
|
name: 'spec_files_map',
|
||
|
|
type: 'jsonb',
|
||
|
|
isNullable: true,
|
||
|
|
default: null,
|
||
|
|
})
|
||
|
|
);
|
||
|
|
}
|
||
|
|
|
||
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||
|
|
await queryRunner.dropColumn('plugins', 'spec_files_map');
|
||
|
|
}
|
||
|
|
}
|