From 8f80f08a1734ee1d3e40f5db82ecab662f8b8c14 Mon Sep 17 00:00:00 2001 From: ase-101 Date: Tue, 27 Feb 2024 21:10:20 +0530 Subject: [PATCH 1/2] DSD-4711 Signed-off-by: ase-101 --- .../sql/1.2.0.1-B5_to_1.2.0.1-B6_rollback.sql | 12 +++++++++++- .../sql/1.2.0.1-B5_to_1.2.0.1-B6_upgrade.sql | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_rollback.sql b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_rollback.sql index 37b4fb58b16..ad9cc2f8008 100644 --- a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_rollback.sql +++ b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_rollback.sql @@ -1,4 +1,14 @@ -\echo 'Upgrade Queries not required for the transition from 1.2.0.1-B5 to 1.2.0.1' +-- ------------------------------------------------------------------------------------------------- +-- Database Name : mosip_ida +-- Release Version : 1.2.0.1-B6 +-- Purpose : Database Alter scripts for the release for ID Authentication DB. +-- Create By : Mahammed Taheer +-- Created Date : Feb-2024 +-- +-- Modified Date Modified By Comments / Remarks +-- ------------------------------------------------------------------------------------------------- +---------------------------------------------------------------------------------------------------- +\c mosip_ida ALTER TABLE ida.credential_event_store ALTER COLUMN credential_transaction_id type character varying(36); diff --git a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_upgrade.sql b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_upgrade.sql index 39f231307f5..26339523717 100644 --- a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_upgrade.sql +++ b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_upgrade.sql @@ -1,4 +1,14 @@ -\echo 'Upgrade Queries not required for transition from 1.2.0.1-B5 to 1.2.0.1' +-- ------------------------------------------------------------------------------------------------- +-- Database Name : mosip_ida +-- Release Version : 1.2.0.1-B6 +-- Purpose : Database Alter scripts for the release for ID Authentication DB. +-- Create By : Mahammed Taheer +-- Created Date : Feb-2024 +-- +-- Modified Date Modified By Comments / Remarks +-- ------------------------------------------------------------------------------------------------- +---------------------------------------------------------------------------------------------------- +\c mosip_ida ALTER TABLE ida.credential_event_store ALTER COLUMN credential_transaction_id type character varying(64); From 517e30854c99ea0bf3357baf56f73b26d6d90f36 Mon Sep 17 00:00:00 2001 From: ase-101 Date: Tue, 27 Feb 2024 23:07:45 +0530 Subject: [PATCH 2/2] DSD-4711 Signed-off-by: ase-101 --- .../sql/1.2.0.1-B4_to_1.2.0.1-B5_rollback.sql | 3 +-- .../sql/1.2.0.1-B4_to_1.2.0.1-B5_upgrade.sql | 12 +----------- .../sql/1.2.0.1-B5_to_1.2.0.1-B6_rollback.sql | 10 ---------- .../sql/1.2.0.1-B5_to_1.2.0.1-B6_upgrade.sql | 10 ---------- 4 files changed, 2 insertions(+), 33 deletions(-) diff --git a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B4_to_1.2.0.1-B5_rollback.sql b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B4_to_1.2.0.1-B5_rollback.sql index cb5727f8853..fa35ee87afc 100644 --- a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B4_to_1.2.0.1-B5_rollback.sql +++ b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B4_to_1.2.0.1-B5_rollback.sql @@ -1,7 +1,6 @@ -\echo 'Upgrade Queries not required for transition from $CURRENT_VERSION to $UPGRADE_VERSION' DROP TABLE IF EXISTS ida.cred_subject_id_store CASCADE; DROP INDEX IF EXISTS ida.ind_csid_key_hash; -DELETE FROM ida.key_policy_def WHERE app_id='IDA_VCI_EXCHANGE'; \ No newline at end of file +DELETE FROM ida.key_policy_def WHERE app_id='IDA_VCI_EXCHANGE'; diff --git a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B4_to_1.2.0.1-B5_upgrade.sql b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B4_to_1.2.0.1-B5_upgrade.sql index efb74c3babe..00feb6056c1 100644 --- a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B4_to_1.2.0.1-B5_upgrade.sql +++ b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B4_to_1.2.0.1-B5_upgrade.sql @@ -1,13 +1,3 @@ --- ------------------------------------------------------------------------------------------------- --- Database Name : mosip_ida --- Release Version : 1.2.1 --- Purpose : Database Alter scripts for the release for ID Authentication DB. --- Create By : Mahammed Taheer --- Created Date : Aug-2023 --- --- Modified Date Modified By Comments / Remarks --- ------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- \c mosip_ida sysadmin CREATE TABLE ida.cred_subject_id_store( @@ -44,4 +34,4 @@ COMMENT ON COLUMN ida.cred_subject_id_store.del_dtimes IS 'Deleted DateTimestamp CREATE INDEX ind_csid_key_hash ON ida.cred_subject_id_store (csid_key_hash); INSERT INTO ida.key_policy_def (app_id, key_validity_duration, is_active, cr_by, cr_dtimes, upd_by, upd_dtimes, is_deleted, del_dtimes, pre_expire_days, access_allowed) -VALUES('IDA_VCI_EXCHANGE', 1095, true, 'mosipadmin', now(), NULL, NULL, false, NULL, 60, 'NA'); \ No newline at end of file +VALUES('IDA_VCI_EXCHANGE', 1095, true, 'mosipadmin', now(), NULL, NULL, false, NULL, 60, 'NA'); diff --git a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_rollback.sql b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_rollback.sql index ad9cc2f8008..92472b7c8e1 100644 --- a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_rollback.sql +++ b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_rollback.sql @@ -1,13 +1,3 @@ --- ------------------------------------------------------------------------------------------------- --- Database Name : mosip_ida --- Release Version : 1.2.0.1-B6 --- Purpose : Database Alter scripts for the release for ID Authentication DB. --- Create By : Mahammed Taheer --- Created Date : Feb-2024 --- --- Modified Date Modified By Comments / Remarks --- ------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- \c mosip_ida ALTER TABLE ida.credential_event_store ALTER COLUMN credential_transaction_id type character varying(36); diff --git a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_upgrade.sql b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_upgrade.sql index 26339523717..757ed487963 100644 --- a/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_upgrade.sql +++ b/db_upgrade_scripts/mosip_ida/sql/1.2.0.1-B5_to_1.2.0.1-B6_upgrade.sql @@ -1,13 +1,3 @@ --- ------------------------------------------------------------------------------------------------- --- Database Name : mosip_ida --- Release Version : 1.2.0.1-B6 --- Purpose : Database Alter scripts for the release for ID Authentication DB. --- Create By : Mahammed Taheer --- Created Date : Feb-2024 --- --- Modified Date Modified By Comments / Remarks --- ------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- \c mosip_ida ALTER TABLE ida.credential_event_store ALTER COLUMN credential_transaction_id type character varying(64);