trimmed migration
This commit is contained in:
1 parent
aa0996656a
commit
9c3035b5d5
5 files changed
+15342
-11
No files matched your search
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