From 8b2d0eb650ca2ebc7e98d4163aa0c37745867e8f Mon Sep 17 00:00:00 2001 From: Dominik Pinsel Date: Fri, 9 Feb 2024 14:38:52 +0100 Subject: [PATCH] intersection tables names are now done alphabetically Signed-off-by: Dominik Pinsel --- .../entity/VerifiableCredentialIssuerIntersectionEntity.java | 2 +- .../entity/VerifiableCredentialTypeIntersectionEntity.java | 2 +- .../src/main/resources/db/changelog/changes/init.sql | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/managed-identity-wallets-app/src/main/java/org/eclipse/tractusx/managedidentitywallets/repository/entity/VerifiableCredentialIssuerIntersectionEntity.java b/managed-identity-wallets-app/src/main/java/org/eclipse/tractusx/managedidentitywallets/repository/entity/VerifiableCredentialIssuerIntersectionEntity.java index 65095e8df..409cdd5f4 100644 --- a/managed-identity-wallets-app/src/main/java/org/eclipse/tractusx/managedidentitywallets/repository/entity/VerifiableCredentialIssuerIntersectionEntity.java +++ b/managed-identity-wallets-app/src/main/java/org/eclipse/tractusx/managedidentitywallets/repository/entity/VerifiableCredentialIssuerIntersectionEntity.java @@ -38,7 +38,7 @@ @ToString public class VerifiableCredentialIssuerIntersectionEntity extends AbstractEntity { - public static final String TABLE_NAME = "verifiable_credential_issuer_intersection"; + public static final String TABLE_NAME = "issuer_verifiable_credential_intersection"; public static final String COLUMN_VERIFIABLE_CREDENTIAL_ID = "verifiable_credential_id"; public static final String COLUMN_VERIFIABLE_CREDENTIAL_ISSUER_ID = "verifiable_credential_issuer_id"; diff --git a/managed-identity-wallets-app/src/main/java/org/eclipse/tractusx/managedidentitywallets/repository/entity/VerifiableCredentialTypeIntersectionEntity.java b/managed-identity-wallets-app/src/main/java/org/eclipse/tractusx/managedidentitywallets/repository/entity/VerifiableCredentialTypeIntersectionEntity.java index 8c030ffde..d280d619f 100644 --- a/managed-identity-wallets-app/src/main/java/org/eclipse/tractusx/managedidentitywallets/repository/entity/VerifiableCredentialTypeIntersectionEntity.java +++ b/managed-identity-wallets-app/src/main/java/org/eclipse/tractusx/managedidentitywallets/repository/entity/VerifiableCredentialTypeIntersectionEntity.java @@ -37,7 +37,7 @@ @ToString public class VerifiableCredentialTypeIntersectionEntity extends AbstractEntity { - public static final String TABLE_NAME = "verifiable_credential_type_intersection"; + public static final String TABLE_NAME = "type_verifiable_credential_intersection"; public static final String COLUMN_VERIFIABLE_CREDENTIAL_ID = "verifiable_credential_id"; public static final String COLUMN_VERIFIABLE_CREDENTIAL_ISSUER_ID = "verifiable_credential_type_id"; diff --git a/managed-identity-wallets-app/src/main/resources/db/changelog/changes/init.sql b/managed-identity-wallets-app/src/main/resources/db/changelog/changes/init.sql index 4031747f9..6a181d831 100644 --- a/managed-identity-wallets-app/src/main/resources/db/changelog/changes/init.sql +++ b/managed-identity-wallets-app/src/main/resources/db/changelog/changes/init.sql @@ -94,7 +94,7 @@ CREATE TABLE IF NOT EXISTS verifiable_credential_wallet_intersection ); /* Verifiable Credential Type Intersection Table */ -CREATE TABLE IF NOT EXISTS verifiable_credential_type_intersection +CREATE TABLE IF NOT EXISTS type_verifiable_credential_intersection ( verifiable_credential_id varchar(255) NOT NULL, verifiable_credential_type_id varchar(255) NOT NULL, @@ -107,7 +107,7 @@ CREATE TABLE IF NOT EXISTS verifiable_credential_type_intersection ); /* Verifiable Credential Issuer Intersection Table */ -CREATE TABLE IF NOT EXISTS verifiable_credential_issuer_intersection +CREATE TABLE IF NOT EXISTS issuer_verifiable_credential_intersection ( verifiable_credential_id varchar(255) NOT NULL, verifiable_credential_issuer_id varchar(255) NOT NULL,