Skip to content

Commit

Permalink
B #3193 update migrator
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian González committed Apr 29, 2019
1 parent dc5a51a commit 51b8480
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/onedb/local/5.6.0_to_5.7.80.rb
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,16 @@ def gen_short_body(body)
xml.STIME body.root.xpath('STIME').text
xml.ETIME body.root.xpath('ETIME').text
xml.DEPLOY_ID body.root.xpath('DEPLOY_ID').text

if !body.root.xpath('LOCK').text.empty?
xml.LOCK {
xml.LOCKED body.root.xpath('LOCK/LOCKED').text unless body.root.xpath('LOCK/LOCKED').text.empty?
xml.LOCKED body.root.xpath('LOCK/OWNER').text unless body.root.xpath('LOCK/OWNER').text.empty?
xml.LOCKED body.root.xpath('LOCK/TIME').text unless body.root.xpath('LOCK/TIME').text.empty?
xml.LOCKED body.root.xpath('LOCK/REQ_ID').text unless body.root.xpath('LOCK/REQ_ID').text.empty?
}
end

xml.TEMPLATE {
xml.AUTOMATIC_REQUIREMENTS body.root.xpath('TEMPLATE/AUTOMATIC_REQUIREMENTS').text
xml.AUTOMATIC_DS_REQUIREMENTS body.root.xpath('TEMPLATE/AUTOMATIC_DS_REQUIREMENTS').text unless body.root.xpath('TEMPLATE/AUTOMATIC_DS_REQUIREMENTS').text.empty?
Expand Down

0 comments on commit 51b8480

Please sign in to comment.