Support older versions by simply skipping unknown sequence attributes.
authorGreg Sabino Mullane <greg@endpoint.com>
Thu, 8 Nov 2012 22:39:46 +0000 (17:39 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Thu, 8 Nov 2012 22:39:46 +0000 (17:39 -0500)
Bucardo.pm

index 157cd6157be44f43d3d6ba40bf569174533a153a..41c42c3f4822f0349b2a3c9ad7279295192cb8a5 100644 (file)
@@ -7607,6 +7607,9 @@ sub adjust_sequence {
             ## Skip things not set by ALTER SEQUENCE
             next if ! $syntax;
 
+            ## Skip if this version of the database does not have this column
+            next if ! defined $sourceinfo->{$name} or ! defined $targetinfo->{$name};
+
             ## Skip if these items are the exact same
             next if exists $targetinfo->{last_value} and $sourceinfo->{$name} eq $targetinfo->{$name};