Commit ae287984 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch 'ab/partitioning-startup-flag' into 'master'

Add flag to disable partition check on startup

See merge request gitlab-org/gitlab!37358
parents 6c597b13 77aa7b4c
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
Gitlab::Database::Partitioning::PartitionCreator.register(AuditEventPartitioned) Gitlab::Database::Partitioning::PartitionCreator.register(AuditEventPartitioned)
begin begin
Gitlab::Database::Partitioning::PartitionCreator.new.create_partitions Gitlab::Database::Partitioning::PartitionCreator.new.create_partitions unless ENV['DISABLE_POSTGRES_PARTITION_CREATION_ON_STARTUP']
rescue ActiveRecord::ActiveRecordError, PG::Error rescue ActiveRecord::ActiveRecordError, PG::Error
# ignore - happens when Rake tasks yet have to create a database, e.g. for testing # ignore - happens when Rake tasks yet have to create a database, e.g. for testing
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment