lib/tasks/switchman.rake in switchman-1.15.2 vs lib/tasks/switchman.rake in switchman-1.16.0

- old
+ new

@@ -216,19 +216,12 @@ def structure_dump(filename, extra_flags=nil) set_psql_env args = ['-s', '-x', '-O', '-f', filename] args.concat(Array(extra_flags)) if extra_flags search_path = configuration['schema_search_path'] - if configuration['use_qualified_names'] - shard = Shard.current.name - serialized_search_path = shard - args << "--schema=#{Shellwords.escape(shard)}" - elsif !search_path.blank? - args << search_path.split(',').map do |part| - "--schema=#{part.strip}" - end.join(' ') - serialized_search_path = connection.schema_search_path - end + shard = Shard.current.name + serialized_search_path = shard + args << "--schema=#{Shellwords.escape(shard)}" args << configuration['database'] run_cmd('pg_dump', args, 'dumping') File.open(filename, "a") { |f| f << "SET search_path TO #{serialized_search_path};\n\n" } end