From 1a05949731abefa080541eba682d2609f5b8e8d6 Mon Sep 17 00:00:00 2001 From: Balaji <74903654+balaji-alluru@users.noreply.github.com> Date: Mon, 11 Nov 2024 10:29:59 +0530 Subject: [PATCH] removed blacklisted words schema Signed-off-by: Balaji <74903654+balaji-alluru@users.noreply.github.com> --- .../ddl/master-blacklisted_words.sql | 41 ------------------- ...words.csv => master-blocklisted_words.csv} | 8 ++-- 2 files changed, 4 insertions(+), 45 deletions(-) delete mode 100644 db_scripts/mosip_master/ddl/master-blacklisted_words.sql rename db_scripts/mosip_master/dml/{master-blacklisted_words.csv => master-blocklisted_words.csv} (74%) diff --git a/db_scripts/mosip_master/ddl/master-blacklisted_words.sql b/db_scripts/mosip_master/ddl/master-blacklisted_words.sql deleted file mode 100644 index 2f6f8e5e99e..00000000000 --- a/db_scripts/mosip_master/ddl/master-blacklisted_words.sql +++ /dev/null @@ -1,41 +0,0 @@ - - --- object: master.blacklisted_words | type: TABLE -- --- DROP TABLE IF EXISTS master.blacklisted_words CASCADE; -CREATE TABLE master.blacklisted_words( - word character varying(128) NOT NULL, - descr character varying(256), - lang_code character varying(3) NOT NULL, - is_active boolean NOT NULL, - cr_by character varying(256) NOT NULL, - cr_dtimes timestamp NOT NULL, - upd_by character varying(256), - upd_dtimes timestamp, - is_deleted boolean DEFAULT FALSE, - del_dtimes timestamp - -); --- ddl-end -- -COMMENT ON TABLE master.blacklisted_words IS 'Black Listed Words : List of words that are black listed.'; --- ddl-end -- -COMMENT ON COLUMN master.blacklisted_words.word IS 'Word: Word that is blacklisted by the system'; --- ddl-end -- -COMMENT ON COLUMN master.blacklisted_words.descr IS 'Description : Description of word blacklisted'; --- ddl-end -- -COMMENT ON COLUMN master.blacklisted_words.lang_code IS 'Language Code : For multilanguage implementation this attribute Refers master.language.code. The value of some of the attributes in current record is stored in this respective language. '; --- ddl-end -- -COMMENT ON COLUMN master.blacklisted_words.is_active IS 'IS_Active : Flag to mark whether the record is Active or In-active'; --- ddl-end -- -COMMENT ON COLUMN master.blacklisted_words.cr_by IS 'Created By : ID or name of the user who create / insert record'; --- ddl-end -- -COMMENT ON COLUMN master.blacklisted_words.cr_dtimes IS 'Created DateTimestamp : Date and Timestamp when the record is created/inserted'; --- ddl-end -- -COMMENT ON COLUMN master.blacklisted_words.upd_by IS 'Updated By : ID or name of the user who update the record with new values'; --- ddl-end -- -COMMENT ON COLUMN master.blacklisted_words.upd_dtimes IS 'Updated DateTimestamp : Date and Timestamp when any of the fields in the record is updated with new values.'; --- ddl-end -- -COMMENT ON COLUMN master.blacklisted_words.is_deleted IS 'IS_Deleted : Flag to mark whether the record is Soft deleted.'; --- ddl-end -- -COMMENT ON COLUMN master.blacklisted_words.del_dtimes IS 'Deleted DateTimestamp : Date and Timestamp when the record is soft deleted with is_deleted=TRUE'; --- ddl-end -- - diff --git a/db_scripts/mosip_master/dml/master-blacklisted_words.csv b/db_scripts/mosip_master/dml/master-blocklisted_words.csv similarity index 74% rename from db_scripts/mosip_master/dml/master-blacklisted_words.csv rename to db_scripts/mosip_master/dml/master-blocklisted_words.csv index 500d9910a76..73f88418928 100644 --- a/db_scripts/mosip_master/dml/master-blacklisted_words.csv +++ b/db_scripts/mosip_master/dml/master-blocklisted_words.csv @@ -1,8 +1,8 @@ word,descr,lang_code,is_active,cr_by,cr_dtimes -shit,Blacklisted Word,eng,TRUE,superadmin,now() -damn,Blacklisted Word,eng,TRUE,superadmin,now() -nigga,Blacklisted Word,eng,TRUE,superadmin,now() -dammit,Blacklisted Word,eng,TRUE,superadmin,now() +shit,Blocklisted Word,eng,TRUE,superadmin,now() +damn,Blocklisted Word,eng,TRUE,superadmin,now() +nigga,Blocklisted Word,eng,TRUE,superadmin,now() +dammit,Blocklisted Word,eng,TRUE,superadmin,now() الخراء,كلمة القائمة السوداء,ara,TRUE,superadmin,now() لعنة,كلمة القائمة السوداء,ara,TRUE,superadmin,now() نيغا,كلمة القائمة السوداء,ara,TRUE,superadmin,now()