-
Notifications
You must be signed in to change notification settings - Fork 371
Expand file tree
/
Copy pathmigrate_schema.rb
More file actions
47 lines (41 loc) · 1.59 KB
/
Copy pathmigrate_schema.rb
File metadata and controls
47 lines (41 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require 'vcap/config'
module VCAP::CloudController
module ConfigSchemas
class MigrateSchema < VCAP::Config
define_schema do
{
optional(:max_migration_duration_in_minutes) => Integer,
optional(:max_migration_statement_runtime_in_seconds) => Integer,
optional(:migration_psql_concurrent_statement_timeout_in_seconds) => Integer,
optional(:migration_psql_worker_memory_kb) => Integer,
optional(:skip_bigint_id_migration) => bool,
db: {
optional(:database) => Hash, # db connection hash for sequel
:max_connections => Integer, # max connections in the connection pool
:pool_timeout => Integer, # timeout before raising an error when connection can't be established to the db
:log_level => String, # debug, info, etc.
:connection_validation_timeout => Integer,
optional(:log_db_queries) => bool,
optional(:ssl_verify_hostname) => bool,
optional(:ca_cert_path) => String,
optional(:enable_paginate_window) => bool
},
db_encryption_key: enum(String, NilClass),
optional(:database_encryption) => {
keys: Hash,
current_key_label: String,
optional(:pbkdf2_hmac_iterations) => Integer
},
logging: {
level: String, # debug, info, etc.
file: String, # Log file to use
optional(:stdout_sink_enabled) => bool
}
}
end
class << self
def configure_components(_); end
end
end
end
end