meilisearch search descr field configurable

This commit is contained in:
xiaomlove
2023-04-09 00:51:33 +08:00
parent fe49b6a2ba
commit 2c85edb1b3
13 changed files with 101 additions and 36 deletions

View File

@@ -90,6 +90,7 @@ class Update extends Install
public function runExtraQueries()
{
$toolRep = new ToolRepository();
/**
* @since 1.7.13
*/
@@ -291,12 +292,18 @@ class Update extends Install
}
if (!$this->isSnatchedTableTorrentUserUnique()) {
$torrentRep = new TorrentRepository();
$torrentRep->removeDuplicateSnatch();
$toolRep->removeDuplicateSnatch();
$this->runMigrate('database/migrations/2023_03_29_021950_handle_snatched_user_torrent_unique.php');
$this->doLog("removeDuplicateSnatch and migrate 2023_03_29_021950_handle_snatched_user_torrent_unique");
}
if (!NexusDB::hasIndex("peers", "unique_torrent_peer_user")) {
$toolRep->removeDuplicatePeer();
$this->runMigrate('database/migrations/2023_04_01_005409_add_unique_torrent_peer_user_to_peers_table.php');
$this->doLog("removeDuplicatePeer and migrate 2023_04_01_005409_add_unique_torrent_peer_user_to_peers_table");
}
}
public function runExtraMigrate()