fix&feature: fixxing some logical bogs and adding cursor pagination
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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"`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user