Dump plugins by hash instead of id

The same exact plugins are often included in many different files/mods. Grouping by hash in the sql query will show all files and mods a plugin appears in. Previously, the last file that was processed would overwrite the plugin file and only that single file/mod would appear in the file.

Also adds an index on plugins.hash since I'm now querying directly on it.
This commit is contained in:
Tyler Hallada
2022-03-12 13:05:21 -05:00
parent c9dcd3b7c5
commit 5d55e78283
3 changed files with 24 additions and 34 deletions

View File

@@ -0,0 +1 @@
CREATE INDEX ON plugins (hash);