/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BAS_BILL_FILE_MAPPING', 'T_BAS_BILL_FILE_MAPPING', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_B_BILL_FILE_MAPPING_PAT') CREATE INDEX IDX_T_B_BILL_FILE_MAPPING_PAT ON T_BAS_BILL_FILE_MAPPING ( FPATH );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_B_BILL_FILE_MAPPING_APP') CREATE INDEX IDX_T_B_BILL_FILE_MAPPING_APP ON T_BAS_BILL_FILE_MAPPING ( FAPPID ,FENTITYNUM );



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