/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BOS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_SEC_USERTYPES', 'T_SEC_USERTYPES', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_SEC_USERTYPES_FID') CREATE INDEX IDX_T_SEC_USERTYPES_FID ON T_SEC_USERTYPES ( FID );


 EXEC P_ALTERPK 'PK_T_SEC_USERTYPES_H', 'T_SEC_USERTYPES_H', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_SEC_USERTYPES_H_FID') CREATE INDEX IDX_T_SEC_USERTYPES_H_FID ON T_SEC_USERTYPES_H ( FID );

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