trimmed migration
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,11 +0,0 @@
|
|||||||
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
||||||
|
|
||||||
export class noNotification1622713782458 implements MigrationInterface {
|
|
||||||
|
|
||||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
||||||
}
|
|
||||||
|
|
||||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||||
|
|
||||||
|
export class noNotification1623231564533 implements MigrationInterface {
|
||||||
|
name = 'noNotification1623231564533'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "return" ADD "no_notification" boolean`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "claim_order" ADD "no_notification" boolean`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "swap" ADD "no_notification" boolean`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "order" ADD "no_notification" boolean`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE "order" DROP COLUMN "no_notification"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "swap" DROP COLUMN "no_notification"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "claim_order" DROP COLUMN "no_notification"`);
|
||||||
|
await queryRunner.query(`ALTER TABLE "return" DROP COLUMN "no_notification"`);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user