summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2010-07-28 02:54:45 +0000
committerivan <ivan>2010-07-28 02:54:45 +0000
commit2c4dd73f9bdcb53491be781bdc0da6e53f78ba49 (patch)
treeb1c11bd3e2e0834a58dcbd12b014d7d635844d53 /FS
parentc16314e8e12b1e48d0871f935a72dee4b4f8f7c4 (diff)
fix unnecessary warnings on upgrade of remote Pg RADIUS db, RT#9178
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Upgrade.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/FS/FS/Upgrade.pm b/FS/FS/Upgrade.pm
index 34fc3248c..ce8932262 100644
--- a/FS/FS/Upgrade.pm
+++ b/FS/FS/Upgrade.pm
@@ -200,7 +200,10 @@ sub upgrade_sqlradius {
$sth_update->execute or die $errmsg.$sth_update->errstr;
} else {
my $error = $sth_alter->errstr;
- warn $errmsg.$error unless $error =~ /Duplicate column name/i;
+ warn $errmsg.$error
+ unless $error =~ /Duplicate column name/i #mysql
+ || $error =~ /already exists/i; #Pg
+;
}
} else {
my $error = $dbh->errstr;
@@ -214,8 +217,8 @@ sub upgrade_sqlradius {
unless ( $sth_index->execute ) {
my $error = $sth_index->errstr;
warn $errmsg.$error
- unless $error =~ /Duplicate key name/i #mysql
- || $error =~ /relation "freesidestatus" already exists/i; #Pg
+ unless $error =~ /Duplicate key name/i #mysql
+ || $error =~ /already exists/i; #Pg
}
} else {
my $error = $dbh->errstr;