@@ -24,14 +24,14 @@ func TestRestoreCommandBuilding(t *testing.T) {
2424 ForceInit : false ,
2525 DumpFile : "/tmp/db.dump" ,
2626 },
27- Command : []string {"pg_restore" , "--username" , "postgres" , "--dbname" , "postgres" , "--create" , "--no-privileges" , "--jobs" , "1" , "/tmp/db.dump" },
27+ Command : []string {"pg_restore" , "--username" , "postgres" , "--dbname" , "postgres" , "--create" , "--no-privileges" , "--no-owner" , "-- jobs" , "1" , "/tmp/db.dump" },
2828 },
2929 {
3030 CopyOptions : RestoreOptions {
3131 ParallelJobs : 4 ,
3232 ForceInit : true ,
3333 },
34- Command : []string {"pg_restore" , "--username" , "postgres" , "--dbname" , "postgres" , "--create" , "--no-privileges" , "--clean" , "--if-exists" , "--jobs" , "4" , "" },
34+ Command : []string {"pg_restore" , "--username" , "postgres" , "--dbname" , "postgres" , "--create" , "--no-privileges" , "--no-owner" , "-- clean" , "--if-exists" , "--jobs" , "4" , "" },
3535 },
3636 {
3737 CopyOptions : RestoreOptions {
@@ -40,7 +40,7 @@ func TestRestoreCommandBuilding(t *testing.T) {
4040 Partial : Partial {Tables : []string {"test" , "users" }},
4141 DumpFile : "/tmp/db.dump" ,
4242 },
43- Command : []string {"pg_restore" , "--username" , "postgres" , "--dbname" , "postgres" , "--create" , "--no-privileges" , "--jobs" , "1" , "--table" , "test" , "--table" , "users" , "/tmp/db.dump" },
43+ Command : []string {"pg_restore" , "--username" , "postgres" , "--dbname" , "postgres" , "--create" , "--no-privileges" , "--no-owner" , "-- jobs" , "1" , "--table" , "test" , "--table" , "users" , "/tmp/db.dump" },
4444 },
4545 }
4646
0 commit comments