fix: fix some changes
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class AnswerSubmissionV21783945681366 implements MigrationInterface {
|
||||
name = 'AnswerSubmissionV21783945681366'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "test" ADD "questionsCount" integer NOT NULL DEFAULT '0'`);
|
||||
await queryRunner.query(`ALTER TABLE "submission" ADD "currentQuestionOrder" integer NOT NULL DEFAULT '1'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "submission" DROP COLUMN "currentQuestionOrder"`);
|
||||
await queryRunner.query(`ALTER TABLE "test" DROP COLUMN "questionsCount"`);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user