/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HPDI_constraint.sql **/
 EXEC P_ALTERPK 'PK_HPDI_BIZDATAOPERATELOG', 'T_HPDI_BIZDATAOPERATELOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HPDI_BIZDATAOPERATELOG' AND KSQL_INDNAME = 'IDX_HPDI_BIZDATAOPLOG_N1') CREATE INDEX IDX_HPDI_BIZDATAOPLOG_N1 ON T_HPDI_BIZDATAOPERATELOG ( FBIZDATACODE );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_HPDI_BIZDATAOPERATELOG' AND KSQL_INDNAME = 'IDX_HPDI_BIZDATAOPLOG_N2') CREATE INDEX IDX_HPDI_BIZDATAOPLOG_N2 ON T_HPDI_BIZDATAOPERATELOG ( FOPERATEBIZDATACODE );



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