/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\FA_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_FA_CLRBILL_LK', 'T_FA_CLRBILL_LK', 'FPKID', '1';


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


 EXEC P_ALTERPK 'PK_T_FA_CLRBILL_TC', 'T_FA_CLRBILL_TC', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FA_CLRBILL_TC_SBID') CREATE INDEX IDX_FA_CLRBILL_TC_SBID ON T_FA_CLRBILL_TC ( FSBILLID );


 EXEC P_ALTERPK 'PK_T_FA_CLRBILL_WB', 'T_FA_CLRBILL_WB', 'FENTRYID', '1';

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



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