Skip to content

Commit

Permalink
Merge pull request #324 from fdr/fdr-ts
Browse files Browse the repository at this point in the history
Sort by filename when generating INSERTs
  • Loading branch information
Guðmundur Bjarni Ólafsson committed Jan 18, 2018
2 parents f32ee4e + a825623 commit 3336797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pliny/tasks/db.rake
Expand Up @@ -107,7 +107,7 @@ begin
search_path = db.dataset.with_sql("SHOW search_path").single_value
schema << "SET search_path = #{search_path};\n\n"

db[:schema_migrations].each do |migration|
db[:schema_migrations].order_by(:filename).each do |migration|
schema << db[:schema_migrations].insert_sql(migration) + ";\n"
end
end
Expand Down

0 comments on commit 3336797

Please sign in to comment.