FIX: Restorer was not extracting the patch version in dump file.

This commit is contained in:
Guo Xiang Tan 2018-03-16 11:09:13 +08:00
parent 833314f4b4
commit e2f6d8b5ca

View File

@ -260,7 +260,7 @@ module BackupRestore
failure_message: "Failed to check version of pg_dump used to generate the dump file"
)
output.match(/version (\d+(\.\d+)?)/)[1]
output.match(/version (\d+(\.\d+)+)/)[1]
end
def can_restore_into_different_schema?