Yes, that's a bug in inconsistency.pl. The check on the address table is now not needed since global address book entries have a userid of 0. That means it's thinking that every global address book entry is inconsistent. Just comment out the chunk of code around line ~153:
Code:
--- consistency.pl 5 Mar 2004 00:56:41 -0000 1.13
+++ consistency.pl 5 Mar 2004 18:12:06 -0000
@@ -153,16 +153,18 @@
}
}
+# Global address book uses userid of 0 to indicate a global address, so this
+# check is now unnecessary.
# address => users
- $rel = $DB->table('address', 'users');
- $sth = $rel->select('left_join', 'distinct(address_userid)', { userid => undef });
- print "address table inconsistencies: ", $sth->rows + 0, "\n";
- if ($fix) {
- my $tb = $DB->table('address');
- while (my $row = $sth->fetchrow_hashref) {
- $tb->delete({ address_userid => $row->{address_userid} });
- }
- }
+# $rel = $DB->table('address', 'users');
+# $sth = $rel->select('left_join', 'distinct(address_userid)', { userid => undef });
+# print "address table inconsistencies: ", $sth->rows + 0, "\n";
+# if ($fix) {
+# my $tb = $DB->table('address');
+# while (my $row = $sth->fetchrow_hashref) {
+# $tb->delete({ address_userid => $row->{address_userid} });
+# }
+# }
# filter => users
$rel = $DB->table('filter', 'users');
Adrian