Skip to content

Commit

Permalink
[api] fix first history entry detection in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Sep 10, 2014
1 parent f81a787 commit 0470e9e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -33,7 +33,7 @@ def self.up
history.create(p) if history
end

s = OldHistory.find_by_sql "SELECT id,bs_request_id,state,comment,commenter,superseded_by,created_at FROM bs_request_histories ORDER BY bs_request_id ASC, state DESC"
s = OldHistory.find_by_sql "SELECT id,bs_request_id,state,comment,commenter,superseded_by,created_at FROM bs_request_histories ORDER BY bs_request_id ASC, created_at ASC"

oldid=nil
puts "Converting #{s.length} request history elements into new structure"
Expand Down

0 comments on commit 0470e9e

Please sign in to comment.