/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_PRIVACY_DESEN_RULES', 'T_PRIVACY_DESEN_RULES', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_PRIVACY_DESEN_RULES' AND KSQL_INDNAME = 'IDX_PRIVACY_DESEN_RULE_FNUMBER') CREATE INDEX IDX_PRIVACY_DESEN_RULE_FNUMBER ON T_PRIVACY_DESEN_RULES ( FNUMBER );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_PRIVACY_DESEN_RULES' AND KSQL_INDNAME = 'IDX_PRIVACY_DESEN_RULE_FNAME') CREATE INDEX IDX_PRIVACY_DESEN_RULE_FNAME ON T_PRIVACY_DESEN_RULES ( FNAME );


 EXEC P_ALTERPK 'PK_T_PRIVACY_DESEN_RULES_L', 'T_PRIVACY_DESEN_RULES_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_PRIVACY_DESEN_RULES_L' AND KSQL_INDNAME = 'IDX_PRIVACY_DESEN_RULES_L_FID') CREATE INDEX IDX_PRIVACY_DESEN_RULES_L_FID ON T_PRIVACY_DESEN_RULES_L ( FID ,FLOCALEID );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
