Update ArticlesDatabase.swift

Delete code that forced rebuilding the search index
This commit is contained in:
Fábio Oliveira 2021-02-11 00:26:26 +01:00
parent 408e5d0ba0
commit 6903db357a
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public final class ArticlesDatabase {
database.executeStatements("CREATE INDEX if not EXISTS articles_searchRowID on articles(searchRowID);")
database.executeStatements("DROP TABLE if EXISTS tags;DROP INDEX if EXISTS tags_tagName_index;DROP INDEX if EXISTS articles_feedID_index;DROP INDEX if EXISTS statuses_read_index;DROP TABLE if EXISTS attachments;DROP TABLE if EXISTS attachmentsLookup;")
if !self.searchTable.containsColumn("authors", in: database) {
database.executeStatements("DROP TABLE if EXISTS search;UPDATE articles SET searchRowID = null;")
database.executeStatements("DROP TABLE if EXISTS search;")
database.executeStatements(ArticlesDatabase.searchTableCreationStatements)
}
}