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 +4 -4
- data/definitions/features/foreman_tasks.rb +4 -4
- data/lib/foreman_maintain/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a9aa2cfbc30718a86ed4e30a33b512666147926b9f8dbc34b3e34f311167601
|
4
|
+
data.tar.gz: 869ebe7840ade6dddd3f657ecd9878be6a64411dcf9626779f8357954f7cef4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2019-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clamp
|