From 985a5cdfd42ae11c26bd1488a854b6e7645ff01f Mon Sep 17 00:00:00 2001 From: JGiter Date: Tue, 12 Nov 2024 12:09:15 +0200 Subject: [PATCH] fix: did sync status migration --- ...DIDSyncStatus.ts => 1731406082840-AddDIDSyncStatus.ts} | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) rename src/migrations/{1731403701796-AddDIDSyncStatus.ts => 1731406082840-AddDIDSyncStatus.ts} (67%) diff --git a/src/migrations/1731403701796-AddDIDSyncStatus.ts b/src/migrations/1731406082840-AddDIDSyncStatus.ts similarity index 67% rename from src/migrations/1731403701796-AddDIDSyncStatus.ts rename to src/migrations/1731406082840-AddDIDSyncStatus.ts index 8cbe7584..882b2bad 100644 --- a/src/migrations/1731403701796-AddDIDSyncStatus.ts +++ b/src/migrations/1731406082840-AddDIDSyncStatus.ts @@ -1,12 +1,9 @@ import { MigrationInterface, QueryRunner } from 'typeorm'; -export class AddDIDSyncStatus1731403701796 implements MigrationInterface { - name = 'AddDIDSyncStatus1731403701796'; +export class AddDIDSyncStatus1731406082840 implements MigrationInterface { + name = 'AddDIDSyncStatus1731406082840'; public async up(queryRunner: QueryRunner): Promise { - await queryRunner.query( - `CREATE TABLE "did_document_entity" ("id" character varying NOT NULL, "service" jsonb NOT NULL, "authentication" jsonb NOT NULL, "created" character varying, "delegates" text array, "proof" jsonb, "publicKey" jsonb NOT NULL, "updated" character varying, "@context" character varying NOT NULL, "logs" character varying NOT NULL, CONSTRAINT "PK_d96048f4c93be203eeff05ef404" PRIMARY KEY ("id"))` - ); await queryRunner.query( `CREATE TYPE "public"."did_sync_status_entity_status_enum" AS ENUM('0', '1')` ); @@ -26,6 +23,5 @@ export class AddDIDSyncStatus1731403701796 implements MigrationInterface { await queryRunner.query( `DROP TYPE "public"."did_sync_status_entity_status_enum"` ); - await queryRunner.query(`DROP TABLE "did_document_entity"`); } }