HomePhabricator

Replace index flow_ext_ref_idx_v2 with flow_ext_ref_idx_3 index if it exists.

Authored by Paladox on May 24 2017, 4:47 PM.

Description

Replace index flow_ext_ref_idx_v2 with flow_ext_ref_idx_3 index if it exists.

Includes better detection so that dropping the index only runs if the index does exist.

This should fix problems in beta labs arising from truncating updatelog.
modifyExtensionField() relies on updatelog to avoid repeating schema changes,
and generally seems to expect changes to be idempotent.

Bug: T166266
Change-Id: I0723a21e4e275e840c04788e0f9d2e45a65f2d45
(cherry picked from commit d32f22b0722c1bab51400c3e058e76e324e64a03)