/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SM_constraint.sql **/
EXEC p_DropIdx 'IDX_SM_SALESORDER_L_FPKID', 'T_SM_SALORDER_L';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SM_SALESORDER_L_FID') CREATE INDEX IDX_SM_SALESORDER_L_FID ON T_SM_SALORDER_L ( FID ,FLOCALEID );

EXEC p_DropIdx 'IDX_SM_DELINOTICE_L_FPKID', 'T_SM_DELIVERNOTICE_L';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SM_DELINOTICE_L_FID') CREATE INDEX IDX_SM_DELINOTICE_L_FID ON T_SM_DELIVERNOTICE_L ( FID ,FLOCALEID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SM_DELIPAT_L_FNAME') CREATE INDEX IDX_SM_DELIPAT_L_FNAME ON T_SM_DELIVERPATTERN_L ( FNAME ,FID );


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