###
foreach my $attribute ( @attributes ) {
+
my $statement =
"ALTER TABLE svc_acct ADD COLUMN radius_$attribute varchar($char_d) NULL";
my $sth = $dbh->prepare( $statement )
or warn "Error preparing $statement: ". $dbh->errstr;
- $sth->execute
+ my $rc = $sth->execute
or warn "Error executing $statement: ". $sth->errstr;
+
+ $statement =
+ "ALTER TABLE h_svc_acct ADD COLUMN radius_$attribute varchar($char_d) NULL";
+ $sth = $dbh->prepare( $statement )
+ or warn "Error preparing $statement: ". $dbh->errstr;
+ $rc = $sth->execute
+ or warn "Error executing $statement: ". $sth->errstr;
+
}
$dbh->commit or die $dbh->errstr;
print "\n\n", "Now you must run dbdef-create.\n\n";
sub usage {
- die "Usage:\n fs-radius-add user\n";
+ die "Usage:\n fs-radius-add-reply user\n";
}