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