         }
 
         let indexSiteIDDate =
-        "CREATE INDEX IF NOT EXISTS \(IndexVisitsSiteIDDate) " +
-        "ON \(TableVisits) (siteID, date)"
+        "CREATE INDEX IF NOT EXISTS \(IndexVisitsSiteIDIsLocalDate) " +
+        "ON \(TableVisits) (siteID, is_local, date)"
 
         let faviconSites =
         "CREATE TABLE IF NOT EXISTS \(TableFaviconSites) (" +

            }
        }

        return true
    }



private let AllIndices: Args = [
    IndexHistoryShouldUpload,
    IndexVisitsSiteIDIsLocalDate,
]

private let AllTablesIndicesAndViews: Args = AllViews + AllIndices + AllTables
