3126e89eb8
This commit has two migrations: 1. The first prunes duplicate rows in the project_features table and leaves the row with the highest ID. Since the behavior was indeterministic before and depended on which row the database decided to use, this change at least makes the permissions consistent. For example, in some cases, the Wiki may have been disabled but enabled in another entry. 2. The second adds a non-null constraint on the project_features.project_id column. Closes #37882 Fixes a significant part of gitlab-com/migration#408. We found that we were overcounting Wikis because of these duplicates. On GitLab.com, there are 56 rows with duplicate entries by project_id, and 16,661 rows with NULL project_id values. |
||
---|---|---|
.. | ||
after_export_strategies | ||
after_export_strategy_builder.rb | ||
attribute_cleaner.rb | ||
attributes_finder.rb | ||
avatar_restorer.rb | ||
avatar_saver.rb | ||
command_line_util.rb | ||
error.rb | ||
file_importer.rb | ||
hash_util.rb | ||
import_export.yml | ||
importer.rb | ||
json_hash_builder.rb | ||
lfs_restorer.rb | ||
lfs_saver.rb | ||
members_mapper.rb | ||
merge_request_parser.rb | ||
project_tree_restorer.rb | ||
project_tree_saver.rb | ||
reader.rb | ||
relation_factory.rb | ||
repo_restorer.rb | ||
repo_saver.rb | ||
saver.rb | ||
shared.rb | ||
statistics_restorer.rb | ||
uploads_restorer.rb | ||
uploads_saver.rb | ||
version_checker.rb | ||
version_saver.rb | ||
wiki_repo_saver.rb | ||
wiki_restorer.rb |