Add special mention if a mod action was performed on behalf of another mod with the --mmod option
This commit is contained in:
parent
4ce59fb99b
commit
e841f20ab0
4 changed files with 58 additions and 12 deletions
19
src/migrations/1549649586803-AddPPFieldsToCases.ts
Normal file
19
src/migrations/1549649586803-AddPPFieldsToCases.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
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\`
|
||||
`);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue