/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\FA_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FA_ENGINEERINGBILL', 'T_FA_ENGINEERINGBILL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_ENGINEERINGBILL') CREATE INDEX IDX_FA_ENGINEERINGBILL ON T_FA_ENGINEERINGBILL ( FBILLNO );


 EXEC P_ALTERPK 'PK_T_FA_ENGINEERINGBILLENTRY', 'T_FA_ENGINEERINGBILLENTRY', 'FENTRYID', '1';

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



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