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)
10
10
args . concat ( [ '-d' , @connection_settings . database ] )
11
11
args . concat ( [ '-U' , @connection_settings . username ] ) if @connection_settings . username
12
12
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
14
14
Kernel . system ( "pg_dump" , *args )
15
15
end
16
16
17
17
def restore ( filename )
18
18
args = [ '-d' , @connection_settings . database ]
19
19
args . concat ( [ '-U' , @connection_settings . username ] ) if @connection_settings . username
20
20
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
22
22
args << filename
23
23
Kernel . system ( "pg_restore" , *args )
24
24
end
You can’t perform that action at this time.
0 commit comments