modmapper/migrations
Tyler Hallada e85edff30a Fix bad interior cell data in db
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.
2023-11-08 01:10:49 -05:00
..
20210530010850_initial.sql Log spans, track size & undownloadable files 2021-07-11 22:49:29 -04:00
20210720032703_add_world_tables_and_world_id_column_to_cells.sql Add world tables and columns, temporary backfill 2021-07-21 21:35:11 -04:00
20210729031521_add_downloaded_at_to_files.sql Add timestamp to mods for some resumability 2021-07-29 00:50:42 -04:00
20210729040241_add_last_updated_files_at_to_mods.sql Add timestamp to mods for some resumability 2021-07-29 00:50:42 -04:00
20210729161345_add_has_plugin_to_files.sql Add more status columns to fix continuation of unprocessed files 2021-07-29 22:55:34 -04:00
20210729162802_add_unable_to_extract_plugins_to_files.sql Add more status columns to fix continuation of unprocessed files 2021-07-29 22:55:34 -04:00
20210809010234_make_mod_category_nullable.sql Make mod category nullable 2021-08-08 19:14:23 -06:00
20220113194929_add_cell_lookup_index.sql Add missing migration for cell lookup index 2022-02-06 23:30:20 -05:00
20220118021910_add_additional_columns_to_mods.sql Scrape additional fields to mod table 2022-01-17 23:37:58 -05:00
20220119022820_make_backfilled_mod_columns_non_null.sql Set columns to not null, remove backfill code 2022-01-18 21:50:09 -05:00
20220125012642_add_ancestor_ids_to_plugins_and_plugin_cells.sql Add ancestor id columns to plugins and plugin_cells 2022-01-24 21:14:59 -05:00
20220125021924_add_ancestor_ids_indices_to_plugins_and_plugin_cells.sql Add indices for new ancestor id columns 2022-01-24 21:21:12 -05:00
20220125022902_make_ancestor_ids_non_nullable_on_plugins_and_plugin_cells.sql Make ancestor cols not nullable, add fk constraints 2022-01-24 21:41:45 -05:00
20220312173403_add_plugin_hash_index.sql Dump plugins by hash instead of id 2022-03-12 13:05:21 -05:00
20220316031403_add_is_translation_to_mods.sql Add is_translation to mod with backfill 2022-03-15 23:59:56 -04:00
20231101025211_add_is_base_game_to_cells.sql Fix bad interior cell data in db 2023-11-08 01:10:49 -05:00