mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 23:09:59 +00:00
19 lines
572 B
TypeScript
19 lines
572 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class AddPPFieldsToCases1549649586803 implements MigrationInterface {
|
|
public async up(queryRunner: QueryRunner): Promise<any> {
|
|
await queryRunner.query(`
|
|
ALTER TABLE \`cases\`
|
|
ADD COLUMN \`pp_id\` BIGINT NULL,
|
|
ADD COLUMN \`pp_name\` VARCHAR(128) NULL
|
|
`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<any> {
|
|
await queryRunner.query(`
|
|
ALTER TABLE \`cases\`
|
|
DROP COLUMN \`pp_id\`,
|
|
DROP COLUMN \`pp_name\`
|
|
`);
|
|
}
|
|
}
|