 let ViewIconForURL = "view_icon_for_url"
 
 let IndexHistoryShouldUpload = "idx_history_should_upload"
-let IndexVisitsSiteIDDate = "idx_visits_siteID_date"
+let IndexVisitsSiteIDDate = "idx_visits_siteID_date"                   // Removed in v6.
+let IndexVisitsSiteIDIsLocalDate = "idx_visits_siteID_is_local_date"   // Added in v6.
 
 private let AllTables: Args = [
     TableFaviconSites,

        }

        let indexSiteIDDate =
        "CREATE INDEX IF NOT EXISTS \(IndexVisitsSiteIDDate) " +
        "ON \(TableVisits) (siteID, date)"

        let faviconSites =
        "CREATE TABLE IF NOT EXISTS \(TableFaviconSites) (" +


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

private let AllTablesIndicesAndViews: Args = AllViews + AllIndices + AllTables
