Skip to content

Commit

Permalink
MOSIP-35798, MOSIP-32162 (#1572)
Browse files Browse the repository at this point in the history
* MOSIP-35798

Signed-off-by: dhanendra06 <[email protected]>

* updated the pr based on review comments

Signed-off-by: dhanendra06 <[email protected]>

---------

Signed-off-by: dhanendra06 <[email protected]>
  • Loading branch information
dhanendra06 authored Sep 24, 2024
1 parent c495c94 commit 96a3478
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions db_scripts/mosip_kernel/ddl/kernel-uin.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ CREATE TABLE kernel.uin(

);
-- ddl-end --

--index section starts----
CREATE INDEX IF NOT EXISTS idx_uin_status ON kernel.uin using btree(uin_status) where uin_status='UNUSED';
CREATE INDEX IF NOT EXISTS idx_uin_uin ON kernel.uin using btree(uin);
--index section ends------

COMMENT ON TABLE kernel.uin IS 'UIN: Stores pre-generated UINs that are assigned to an individual as part of registration process.';
-- ddl-end --
COMMENT ON COLUMN kernel.uin.uin IS 'UIN: Pre-generated UINs (Unique Identification Number), which will be used to assign to an individual';
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
\echo 'Upgrade Queries not required for transition from $CURRENT_VERSION to $UPGRADE_VERSION'
--#INDEX--
DROP INDEX IF EXISTS idx_uin_status ON kernel.uin;
DROP INDEX IF EXISTS idx_uin_uin ON kernel.uin;
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
\echo 'Upgrade Queries not required for transition from $CURRENT_VERSION to $UPGRADE_VERSION'
--#INDEX--
CREATE INDEX IF NOT EXISTS idx_uin_status ON kernel.uin using btree(uin_status) where uin_status='UNUSED';
CREATE INDEX IF NOT EXISTS idx_uin_uin ON kernel.uin using btree(uin);

0 comments on commit 96a3478

Please sign in to comment.