forked from maxlapshin/mysql2postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.database.yml
72 lines (61 loc) · 1.79 KB
/
default.database.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
mysql:
hostname: localhost
port: 3306
username: username
password: default
database: awesome_possum
encoding: utf8mb4
# if MYSQL2POSTGRES_ENV and RAILS_ENV is missing, development is used!
destinations:
production:
# adapter: default is postgresql
adapter: postgresql
encoding: utf8
pool: 4
username: terrapotamus
password: default
host: 127.0.0.1
database: awesome_possum
development:
encoding: utf8
pool: 4
username: terrapotamus
password: default
host: 127.0.0.1
database: awesome_possum_dev
test:
encoding: utf8
pool: 4
username: terrapotamus
password: default
host: 127.0.0.1
database: awesome_possum_test
test2:
# use adapter 'file', if you just want to create a sql file for postgresql
# NOTE: PostgreSQL import is skipped
adapter: file
# if filename is not specified, dump file name is used
filename: /tmp/converted.sql
tables:
- countries
- samples
- universes
- variable_groups
- variables
- sample_variables
# If suppress_data is true, only the schema definition will be exported/migrated, and not the data
suppress_data: false
# If suppress_ddl is true, only the data will be exported/imported, and not the schema
suppress_ddl: false
# If force_truncate is true, forces a table truncate before table loading
force_truncate: false
preserve_order: true
remove_dump_file: true
dump_file_directory: /tmp
# if true, migration is to dump file (PostgreSQL import is skipped)
# NOTE: do not use remove_dump_file: true, if you want to use converted sql file)
to_file: false
report_status: json # false, json, xml
# If clear_schema is true, the public schema will be recreated before conversion
# The import will fail if both clear_schema and suppress_ddl are true.
clear_schema: false