File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ def dump(filename)
1010 args . concat ( [ '-d' , @connection_settings . database ] )
1111 args . concat ( [ '-U' , @connection_settings . username ] ) if @connection_settings . username
1212 args . concat ( [ '-h' , @connection_settings . host ] ) if @connection_settings . host
13- args . concat ( [ '-p' , @connection_settings . port ] ) if @connection_settings . port
13+ args . concat ( [ '-p' , @connection_settings . port . to_s ] ) if @connection_settings . port
1414 Kernel . system ( "pg_dump" , *args )
1515 end
1616
1717 def restore ( filename )
1818 args = [ '-d' , @connection_settings . database ]
1919 args . concat ( [ '-U' , @connection_settings . username ] ) if @connection_settings . username
2020 args . concat ( [ '-h' , @connection_settings . host ] ) if @connection_settings . host
21- args . concat ( [ '-p' , @connection_settings . port ] ) if @connection_settings . port
21+ args . concat ( [ '-p' , @connection_settings . port . to_s ] ) if @connection_settings . port
2222 args << filename
2323 Kernel . system ( "pg_restore" , *args )
2424 end
You can’t perform that action at this time.
0 commit comments