/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_LIC_USERSYNFAILLOG', 'T_LIC_USERSYNFAILLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_LIC_USER_FUSERID') CREATE INDEX IDX_T_LIC_USER_FUSERID ON T_LIC_USERSYNFAILLOG ( FUSERID );


 EXEC P_ALTERPK 'PK_T_SEC_IPCONTROL', 'T_SEC_IPCONTROL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_SEC_IPCONTROLID_USERID') CREATE INDEX IDX_T_SEC_IPCONTROLID_USERID ON T_SEC_IPCONTROL ( FUSERID );


 EXEC P_ALTERPK 'PK_T_SEC_IPCONTROL_L', 'T_SEC_IPCONTROL_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_SEC_IPCONTROL_L_FID') CREATE INDEX IDX_T_SEC_IPCONTROL_L_FID ON T_SEC_IPCONTROL_L ( FID ,FLOCALEID );



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