I had a bad unique index on the `cells` table. This commit does not fix
it but has two backfill scripts that will allow me to fixup the data
before creating the new unique index.
`is_base_game` identifies cells that are from the `Skyrim.esm` shipped
with the game (and not from some mod that happens to also have a
`Skyrim.esm` with a 0,0 cell with a different form id, see:
https://github.com/thallada/modmapper-web/issues/8).
`dump_cell_data` now only dumps cells from `is_base_game` cells.
`deduplicate_interior_cells` removes duplicate cell and plugin_cell rows
caused by the buggy index.
I will need to upgrade the database and create a new index in a later
commit.
Now, the update command will scrape all non-translation mods and translation mods separately so the is_translation value can be set correctly in the future.
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.