Skip to content
Snippets Groups Projects
Unverified Commit e22de923 authored by Marius Bobin's avatar Marius Bobin
Browse files

Merge branch 'ka/broken-master/3476' into 'master'

Enable DDL when recreating databases in tests

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/131031



Merged-by: default avatarMarius Bobin <mbobin@gitlab.com>
Approved-by: default avatarMarius Bobin <mbobin@gitlab.com>
Co-authored-by: default avatarKrasimir Angelov <kangelov@gitlab.com>
parents 3ca63455 bcbcbec0
No related tags found
No related merge requests found
Loading
Loading
@@ -73,7 +73,10 @@ def recreate_all_databases!
end
end
 
disable_ddl_was = Feature.enabled?(:disallow_database_ddl_feature_flags, type: :ops)
stub_feature_flags(disallow_database_ddl_feature_flags: false)
Gitlab::Database::Partitioning.sync_partitions_ignore_db_error
stub_feature_flags(disallow_database_ddl_feature_flags: disable_ddl_was)
 
puts "Databases re-creation done in #{Gitlab::Metrics::System.monotonic_time - start}"
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment