Skip to content

Commit

Permalink
Updated db scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Loganathan Sekar <[email protected]>
  • Loading branch information
Loganathan Sekar authored and Loganathan Sekar committed Feb 12, 2024
1 parent b6232d6 commit e1ecb4d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion db_scripts/mosip_ida/ddl/ida-otp_transaction.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ CREATE TABLE ida.otp_transaction(
);
-- ddl-end --
--index section starts----
CREATE INDEX ind_otphsh ON ida.otp_transaction (otp_hash,status_code);
CREATE INDEX ind_refid ON ida.otp_transaction (ref_id,status_code);
--index section ends------
COMMENT ON TABLE ida.otp_transaction IS 'OTP Transaction: All OTP related data and validation details are maintained here for ID Authentication module.';
-- ddl-end --
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
\echo 'Upgrade Queries not required for the transition from 1.2.0.1-B5 to 1.2.0.1'

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

CREATE INDEX ind_otphsh ON ida.otp_transaction (otp_hash,status_code);

DROP INDEX IF EXISTS ida.ind_refid;

Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
\echo 'Upgrade Queries not required for transition from 1.2.0.1-B5 to 1.2.0.1'

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

DROP INDEX IF EXISTS ida.ind_otphsh;

CREATE INDEX ind_refid ON ida.otp_transaction (ref_id,status_code);

0 comments on commit e1ecb4d

Please sign in to comment.