[freeside-commits] freeside/FS/FS h_cust_pkg.pm, NONE, 1.1 h_cust_pkg_reason.pm, NONE, 1.1 cust_pkg_reason.pm, 1.5, 1.6
Ivan,,,
ivan at wavetail.420.am
Sun Feb 22 11:46:24 PST 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv8714/FS
Modified Files:
cust_pkg_reason.pm
Added Files:
h_cust_pkg.pm h_cust_pkg_reason.pm
Log Message:
add h_cust_pkg and h_cust_pkg_reason packages, RT#4896
--- NEW FILE: h_cust_pkg.pm ---
package FS::h_cust_pkg;
use strict;
use vars qw( @ISA );
use FS::h_Common;
use FS::cust_pkg;
@ISA = qw( FS::h_Common FS::cust_pkg );
sub table { 'h_cust_pkg' };
=head1 NAME
FS::h_cust_pkg - Historical record of customer package changes
=head1 SYNOPSIS
=head1 DESCRIPTION
An FS::h_cust_pkg object represents historical changes to packages.
FS::h_cust_pkg inherits from FS::h_Common and FS::cust_pkg.
=head1 BUGS
=head1 SEE ALSO
L<FS::cust_pkg>, L<FS::h_Common>, L<FS::Record>, schema.html from the base
documentation.
=cut
1;
--- NEW FILE: h_cust_pkg_reason.pm ---
package FS::h_cust_pkg_reason;
use strict;
use vars qw( @ISA );
use FS::h_Common;
use FS::cust_pkg_reason;
@ISA = qw( FS::h_Common FS::cust_pkg_reason );
sub table { 'h_cust_pkg_reason' };
=head1 NAME
FS::h_cust_pkg_reason - Historical record of customer package changes
=head1 SYNOPSIS
=head1 DESCRIPTION
An FS::h_cust_pkg_reason object represents historical changes to packages.
FS::h_cust_pkg_reason inherits from FS::h_Common and FS::cust_pkg_reason.
=head1 BUGS
=head1 SEE ALSO
L<FS::cust_pkg_reason>, L<FS::h_Common>, L<FS::Record>, schema.html from the
base documentation.
=cut
1;
Index: cust_pkg_reason.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg_reason.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- cust_pkg_reason.pm 30 Dec 2008 22:00:27 -0000 1.5
+++ cust_pkg_reason.pm 22 Feb 2009 19:46:22 -0000 1.6
@@ -134,6 +134,9 @@
#
# Used by FS::Upgrade to migrate to a new database.
+use FS::h_cust_pkg;
+use FS::h_cust_pkg_reason;
+
sub _upgrade_data { # class method
my ($class, %opts) = @_;
@@ -143,11 +146,6 @@
my $count = 0;
my @unmigrated = qsearch('cust_pkg_reason', { 'action' => '' } );
foreach ( @unmigrated ) {
- # we could create h_cust_pkg_reason and h_cust_pkg_reason packages
- @FS::h_cust_pkg::ISA = qw( FS::h_Common FS::cust_pkg );
- sub FS::h_cust_pkg::table { 'h_cust_pkg' };
- @FS::h_cust_pkg_reason::ISA = qw( FS::h_Common FS::cust_pkg_reason );
- sub FS::h_cust_pkg_reason::table { 'h_cust_pkg_reason' };
my @history_cust_pkg_reason = qsearch( 'h_cust_pkg_reason', { $_->hash } );
@@ -227,9 +225,6 @@
extra_sql => $extra_sql,
});
foreach ( @unmigrated ) {
- # we could create h_cust_pkg_reason and h_cust_pkg_reason packages
- @FS::h_cust_pkg::ISA = qw( FS::h_Common FS::cust_pkg );
- sub FS::h_cust_pkg::table { 'h_cust_pkg' };
my %action_value = ( op => 'LIKE',
value => 'replace_%',
More information about the freeside-commits
mailing list