/**Begin D:\Users\rd_william_li\Documents\lipin\PDM\PDM_UPGRADE\pdm_new\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_PERM_USERDATARULE', 'T_PERM_USERDATARULE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PERM_USRDR_QRY') CREATE INDEX IDX_PERM_USRDR_QRY ON T_PERM_USERDATARULE ( FUSERID ,FAPPID ,FENTITYNUM ,FPERMITEMID );


 EXEC P_ALTERPK 'PK_T_PERM_USERDATARULE_PROP', 'T_PERM_USERDATARULE_PROP', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PERM_USRDR_PROP_QRY') CREATE INDEX IDX_PERM_USRDR_PROP_QRY ON T_PERM_USERDATARULE_PROP ( FUSERID ,FAPPID ,FENTITYNUM ,FPROPKEY );



/**End D:\Users\rd_william_li\Documents\lipin\PDM\PDM_UPGRADE\pdm_new\BOS_constraint.sql **/
