projects
/
bucardo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d7f462
)
Support older versions by simply skipping unknown sequence attributes.
author
Greg Sabino Mullane
<greg@endpoint.com>
Thu, 8 Nov 2012 22:39:46 +0000
(17:39 -0500)
committer
Greg Sabino Mullane
<greg@endpoint.com>
Thu, 8 Nov 2012 22:39:46 +0000
(17:39 -0500)
Bucardo.pm
patch
|
blob
|
blame
|
history
diff --git
a/Bucardo.pm
b/Bucardo.pm
index 157cd6157be44f43d3d6ba40bf569174533a153a..41c42c3f4822f0349b2a3c9ad7279295192cb8a5 100644
(file)
--- a/
Bucardo.pm
+++ b/
Bucardo.pm
@@
-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};