projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 80488 WA tax tables maintained with Cron
[freeside.git]
/
FS
/
FS
/
tower_sector.pm
diff --git
a/FS/FS/tower_sector.pm
b/FS/FS/tower_sector.pm
index
90d6a9c
..
e2dad1b
100644
(file)
--- a/
FS/FS/tower_sector.pm
+++ b/
FS/FS/tower_sector.pm
@@
-1,6
+1,7
@@
package FS::tower_sector;
use base qw( FS::Record );
package FS::tower_sector;
use base qw( FS::Record );
+use FS::Record qw(dbh qsearch);
use Class::Load qw(load_class);
use File::Path qw(make_path);
use Data::Dumper;
use Class::Load qw(load_class);
use File::Path qw(make_path);
use Data::Dumper;
@@
-153,7
+154,7
@@
sub check {
$self->ut_numbern('sectornum')
|| $self->ut_number('towernum', 'tower', 'towernum')
|| $self->ut_text('sectorname')
$self->ut_numbern('sectornum')
|| $self->ut_number('towernum', 'tower', 'towernum')
|| $self->ut_text('sectorname')
- || $self->ut_
text
n('ip_addr')
+ || $self->ut_
ip46
n('ip_addr')
|| $self->ut_floatn('height')
|| $self->ut_numbern('freq_mhz')
|| $self->ut_numbern('direction')
|| $self->ut_floatn('height')
|| $self->ut_numbern('freq_mhz')
|| $self->ut_numbern('direction')
@@
-326,6
+327,17
@@
sub process_generate_coverage {
die $error if $error;
}
die $error if $error;
}
+sub _upgrade_data {
+
+ require FS::Misc::FixIPFormat;
+ FS::Misc::FixIPFormat::fix_bad_addresses_in_table(
+ 'tower_sector', 'sectornum', 'ip_addr',
+ );
+
+ '';
+
+}
+
=head1 BUGS
=head1 SEE ALSO
=head1 BUGS
=head1 SEE ALSO
@@
-335,4
+347,3
@@
L<FS::tower>, L<FS::Record>, schema.html from the base documentation.
=cut
1;
=cut
1;
-