bricolage 5.20.3 → 5.20.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jobclass/my-import.rb +10 -14
- data/jobclass/my-migrate.rb +10 -14
- data/lib/bricolage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26539773f2494fbfad668fc6865ea15d8e6e42be
|
4
|
+
data.tar.gz: bad48dfdce6017bde0e1a493b9075812e3155d66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 839058660738526f1dc04b9da384ab84207885da21da8c388fb9397e36122fac517b07da8aad3b183525aaa353fb787c00c505f68e312cef6a13de02473949c0
|
7
|
+
data.tar.gz: 0b81d23d4dad5bb8b51e0f7200bb980e8b6de2647c81bed70886bb87d77351a885c241819a5cf81ed4da6bf084794a92163feadb7454a0dbc5041e1695e81cb4
|
data/jobclass/my-import.rb
CHANGED
@@ -64,24 +64,20 @@ JobClass.define('my-import') {
|
|
64
64
|
task.load params['s3-ds'], params['s3-prefix'], work_table,
|
65
65
|
'json', nil, params['options'].merge('gzip' => params['gzip'])
|
66
66
|
|
67
|
-
# GRANT
|
67
|
+
# GRANT, ANALYZE
|
68
68
|
task.grant_if params['grant'], work_table
|
69
|
-
|
70
|
-
|
71
|
-
# VACUUM, ANALYZE
|
72
|
-
task.vacuum_if params['vacuum'], params['vacuum-sort'], work_table
|
73
|
-
task.analyze_if params['analyze'], work_table
|
69
|
+
task.analyze_if params['analyze'], work_table
|
74
70
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
task.drop_force params['dest-table'].to_s
|
79
|
-
else
|
80
|
-
task.create_dummy_table '${dest_table}'
|
81
|
-
task.rename_table params['dest-table'].to_s, "#{params['dest-table'].name}_old"
|
82
|
-
end
|
71
|
+
# RENAME
|
72
|
+
task.create_dummy_table '${dest_table}'
|
73
|
+
task.rename_table params['dest-table'].to_s, "#{params['dest-table'].name}_old"
|
83
74
|
task.rename_table work_table, params['dest-table'].name
|
84
75
|
}
|
76
|
+
|
77
|
+
task.drop_force prev_table if params['no-backup']
|
78
|
+
|
79
|
+
# VACUUM: vacuum is needless for newly created table, applying vacuum after exposure is not a problem.
|
80
|
+
task.vacuum_if params['vacuum'], params['vacuum-sort'], params['dest-table'].to_s
|
85
81
|
}
|
86
82
|
end
|
87
83
|
}
|
data/jobclass/my-migrate.rb
CHANGED
@@ -86,24 +86,20 @@ JobClass.define('my-migrate') {
|
|
86
86
|
task.load params['s3-ds'], params['s3-file'], work_table,
|
87
87
|
'json', nil, params['options'].merge('gzip' => params['gzip'])
|
88
88
|
|
89
|
-
# GRANT
|
89
|
+
# GRANT, ANALYZE
|
90
90
|
task.grant_if params['grant'], work_table
|
91
|
-
|
92
|
-
|
93
|
-
# VACUUM, ANALYZE
|
94
|
-
task.vacuum_if params['vacuum'], params['vacuum-sort'], work_table
|
95
|
-
task.analyze_if params['analyze'], work_table
|
91
|
+
task.analyze_if params['analyze'], work_table
|
96
92
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
task.drop_force params['dest-table'].to_s
|
101
|
-
else
|
102
|
-
task.create_dummy_table '${dest_table}'
|
103
|
-
task.rename_table params['dest-table'].to_s, "#{params['dest-table'].name}_old"
|
104
|
-
end
|
93
|
+
# RENAME
|
94
|
+
task.create_dummy_table '${dest_table}'
|
95
|
+
task.rename_table params['dest-table'].to_s, "#{params['dest-table'].name}_old"
|
105
96
|
task.rename_table work_table, params['dest-table'].name
|
106
97
|
}
|
98
|
+
|
99
|
+
task.drop_force prev_table if params['no-backup']
|
100
|
+
|
101
|
+
# VACUUM: vacuum is needless for newly created table, applying vacuum after exposure is not a problem.
|
102
|
+
task.vacuum_if params['vacuum'], params['vacuum-sort'], params['dest-table'].to_s
|
107
103
|
}
|
108
104
|
end
|
109
105
|
}
|
data/lib/bricolage/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bricolage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.20.
|
4
|
+
version: 5.20.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minero Aoki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|