/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\LCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_LCS_COSTSTRUDEFDETAIL', 'T_LCS_COSTSTRUDEFDETAIL', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_LCS_COSTSTRUDEFDETAIL') CREATE INDEX IDX_LCS_COSTSTRUDEFDETAIL ON T_LCS_COSTSTRUDEFDETAIL ( FENTRYID );



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