Skip to content

Commit

Permalink
fix: did sync status migration
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Nov 12, 2024
1 parent 11e3a61 commit 985a5cd
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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<void> {
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')`
);
Expand All @@ -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"`);
}
}

0 comments on commit 985a5cd

Please sign in to comment.