lib/prodder/project.rb in prodder-1.7.6 vs lib/prodder/project.rb in prodder-1.7.7

- old
+ new

@@ -43,14 +43,11 @@ # false errors if separate_quality_checks? contents = File.readlines(structure_file_name) rgx = /^\-\- .* Type: INDEX; |^\-\- .* Type: TRIGGER; |^\-\- .* Type: FK CONSTRAINT; / structure, *quality = contents.slice_before(rgx).to_a - # the first search path setting for constraints gets left over - # in the structure, so we need to *attempt* to grab that - quality_checks = (structure.grep(/SET search_path/).last || '') + quality.join - File.open(quality_check_file_name, 'w') { |f| f.write(quality_checks) } + File.open(quality_check_file_name, 'w') { |f| f.write(quality.join) } File.open(structure_file_name, 'w') { |f| f.write(structure.join) } end if dump_permissions? FileUtils.mkdir_p File.dirname(permissions_file_name)