Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSD-4711 #1208

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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';
DELETE FROM ida.key_policy_def WHERE app_id='IDA_VCI_EXCHANGE';
Original file line number Diff line number Diff line change
@@ -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(
Expand Down Expand Up @@ -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');
VALUES('IDA_VCI_EXCHANGE', 1095, true, 'mosipadmin', now(), NULL, NULL, false, NULL, 60, 'NA');
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\echo 'Upgrade Queries not required for the transition from 1.2.0.1-B5 to 1.2.0.1'
\c mosip_ida

ALTER TABLE ida.credential_event_store ALTER COLUMN credential_transaction_id type character varying(36);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\echo 'Upgrade Queries not required for transition from 1.2.0.1-B5 to 1.2.0.1'
\c mosip_ida

ALTER TABLE ida.credential_event_store ALTER COLUMN credential_transaction_id type character varying(64);

Expand Down
Loading