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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 326b34046f9bb8911ce3a7ac08b0f7ceffa83948
4
- data.tar.gz: 25cef41b85794bfd777edbace46235833c016497
3
+ metadata.gz: 26539773f2494fbfad668fc6865ea15d8e6e42be
4
+ data.tar.gz: bad48dfdce6017bde0e1a493b9075812e3155d66
5
5
  SHA512:
6
- metadata.gz: d51df7aa0bba0762db988017ed51a2a6cc9f67a78f6884c99ebe3037ad403710387a82ffba762393199452b3fc97b450ae1fde9f6cdc257ae2c5778d8fbaf8cf
7
- data.tar.gz: 9b75296b061f55d5c6e434c6a1749a5b5ad5314c7c57d31484c2e6f6703d5d7e97c43f1fdf71e2fa76e920b37e0aa4b73defdc13041e8f02cf875f100b69cab0
6
+ metadata.gz: 839058660738526f1dc04b9da384ab84207885da21da8c388fb9397e36122fac517b07da8aad3b183525aaa353fb787c00c505f68e312cef6a13de02473949c0
7
+ data.tar.gz: 0b81d23d4dad5bb8b51e0f7200bb980e8b6de2647c81bed70886bb87d77351a885c241819a5cf81ed4da6bf084794a92163feadb7454a0dbc5041e1695e81cb4
@@ -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
- # RENAME
76
- task.transaction {
77
- if params['no-backup']
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
  }
@@ -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
- # RENAME
98
- task.transaction {
99
- if params['no-backup']
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
  }
@@ -1,4 +1,4 @@
1
1
  module Bricolage
2
2
  APPLICATION_NAME = 'Bricolage'
3
- VERSION = '5.20.3'
3
+ VERSION = '5.20.4'
4
4
  end
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.3
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: 2016-12-16 00:00:00.000000000 Z
11
+ date: 2017-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg