foreman_maintain 0.4.8 → 0.4.9

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
  SHA256:
3
- metadata.gz: 0d748d16a88ff4ea39bdefe64acb950f12838579e8b32bf4077c2ce600ee69ee
4
- data.tar.gz: fbbdc32ce0d5b282c3c330a7cd6660126f8b07ba732ed323f91f433141f7d306
3
+ metadata.gz: 7a9aa2cfbc30718a86ed4e30a33b512666147926b9f8dbc34b3e34f311167601
4
+ data.tar.gz: 869ebe7840ade6dddd3f657ecd9878be6a64411dcf9626779f8357954f7cef4b
5
5
  SHA512:
6
- metadata.gz: 870a8eec52a19ce134968b45435b0913efc3e950ec9cba783528b8588b5830098bd48c864c6916a9bc3e378b57c7ac7056066323914c1beca5fccaa9237c257b
7
- data.tar.gz: 0d9c910b5ec28449a47a89615e7df4d1665d178aa7c6b79c24f238ededc751b85a5582889cad8d1a8a235931bf909c136ce9d457d8be946ca9ffe77085c93cd4
6
+ metadata.gz: c58b43e156c4fa59e3398ad4c792031c948229aaa0f31a429dc14a03ad54c765885833e90f1567686544d3ed3b44f463b87f23f43efe420baf56376c0066af0d
7
+ data.tar.gz: b28fd0788ddde4c8ef47f39987fa9f187ec5c634d30633bf335c9a8daf3f0bc53fe1ecf1f4b02579ae749e74a0c475c0033e2c759bd05ba71e8a730e262b7d15
@@ -74,9 +74,9 @@ class Features::ForemanTasks < ForemanMaintain::Feature
74
74
 
75
75
  feature(:foreman_database).psql(<<-SQL)
76
76
  BEGIN;
77
- DELETE FROM dynflow_steps USING foreman_tasks_tasks WHERE (foreman_tasks_tasks.external_id = dynflow_steps.execution_plan_uuid) AND #{tasks_condition};
78
- DELETE FROM dynflow_actions USING foreman_tasks_tasks WHERE (foreman_tasks_tasks.external_id = dynflow_actions.execution_plan_uuid) AND #{tasks_condition};
79
- DELETE FROM dynflow_execution_plans USING foreman_tasks_tasks WHERE (foreman_tasks_tasks.external_id = dynflow_execution_plans.uuid) AND #{tasks_condition};
77
+ DELETE FROM dynflow_steps USING foreman_tasks_tasks WHERE (foreman_tasks_tasks.external_id = dynflow_steps.execution_plan_uuid::varchar) AND #{tasks_condition};
78
+ DELETE FROM dynflow_actions USING foreman_tasks_tasks WHERE (foreman_tasks_tasks.external_id = dynflow_actions.execution_plan_uuid::varchar) AND #{tasks_condition};
79
+ DELETE FROM dynflow_execution_plans USING foreman_tasks_tasks WHERE (foreman_tasks_tasks.external_id = dynflow_execution_plans.uuid::varchar) AND #{tasks_condition};
80
80
  DELETE FROM foreman_tasks_tasks WHERE #{tasks_condition};
81
81
  COMMIT;
82
82
  SQL
@@ -154,7 +154,7 @@ class Features::ForemanTasks < ForemanMaintain::Feature
154
154
  def backup_table(table, state, fkey = 'execution_plan_uuid')
155
155
  yield("Backup #{table} [running]")
156
156
  sql = "SELECT #{table}.* FROM foreman_tasks_tasks JOIN #{table} ON\
157
- (foreman_tasks_tasks.external_id = #{table}.#{fkey})"
157
+ (foreman_tasks_tasks.external_id = #{table}.#{fkey}::varchar)"
158
158
  export_csv(sql, "#{table}.csv", state)
159
159
  yield("Backup #{table} [DONE]")
160
160
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanMaintain
2
- VERSION = '0.4.8'.freeze
2
+ VERSION = '0.4.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_maintain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2019-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clamp