Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/migrations_helpers/work_item_types_helper.rb')
-rw-r--r--spec/support/helpers/migrations_helpers/work_item_types_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/helpers/migrations_helpers/work_item_types_helper.rb b/spec/support/helpers/migrations_helpers/work_item_types_helper.rb
index 40f84486537..9d114ae82b1 100644
--- a/spec/support/helpers/migrations_helpers/work_item_types_helper.rb
+++ b/spec/support/helpers/migrations_helpers/work_item_types_helper.rb
@@ -4,7 +4,11 @@ module MigrationHelpers
module WorkItemTypesHelper
def reset_work_item_types
Gitlab::DatabaseImporters::WorkItems::BaseTypeImporter.upsert_types
+ WorkItems::HierarchyRestriction.reset_column_information
Gitlab::DatabaseImporters::WorkItems::HierarchyRestrictionsImporter.upsert_restrictions
+ return unless WorkItems::RelatedLinkRestriction.table_exists?
+
+ Gitlab::DatabaseImporters::WorkItems::RelatedLinksRestrictionsImporter.upsert_restrictions
end
end
end