File tree Expand file tree Collapse file tree
platforms/dreamsync-api/src/database/migrations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { MigrationInterface , QueryRunner } from "typeorm" ;
2+
3+ export class Migration1768904445609 implements MigrationInterface {
4+ name = 'Migration1768904445609'
5+
6+ public async up ( queryRunner : QueryRunner ) : Promise < void > {
7+ await queryRunner . query ( `ALTER TABLE "wishlists" DROP COLUMN "summaryWants"` ) ;
8+ await queryRunner . query ( `ALTER TABLE "wishlists" ADD "summaryWants" jsonb` ) ;
9+ await queryRunner . query ( `ALTER TABLE "wishlists" DROP COLUMN "summaryOffers"` ) ;
10+ await queryRunner . query ( `ALTER TABLE "wishlists" ADD "summaryOffers" jsonb` ) ;
11+ }
12+
13+ public async down ( queryRunner : QueryRunner ) : Promise < void > {
14+ await queryRunner . query ( `ALTER TABLE "wishlists" DROP COLUMN "summaryOffers"` ) ;
15+ await queryRunner . query ( `ALTER TABLE "wishlists" ADD "summaryOffers" text` ) ;
16+ await queryRunner . query ( `ALTER TABLE "wishlists" DROP COLUMN "summaryWants"` ) ;
17+ await queryRunner . query ( `ALTER TABLE "wishlists" ADD "summaryWants" text` ) ;
18+ }
19+
20+ }
You can’t perform that action at this time.
0 commit comments