15 lines
526 B
TypeScript
15 lines
526 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class AddedPriorityToTaskEntity1784014433653 implements MigrationInterface {
|
|
name = 'AddedPriorityToTaskEntity1784014433653'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "tm_tasks" ADD "priority" integer NOT NULL DEFAULT '1'`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "tm_tasks" DROP COLUMN "priority"`);
|
|
}
|
|
|
|
}
|