[freeside-commits] freeside/FS/FS part_pkg_option.pm,1.1,1.2
Ivan,,,
ivan at wavetail.420.am
Tue Apr 15 12:43:56 PDT 2008
- Previous message: [freeside-commits] freeside/httemplate/elements select-agent_types.html, NONE, 1.1 select-taxproduct.html, 1.1, 1.2 selectlayers.html, 1.2, 1.3 tr-input-text.html, 1.3, 1.4 tr-part_pkg_freq.html, 1.1, 1.2 tr-pkg_svc.html, NONE, 1.1 tr-select-agent_types.html, NONE, 1.1 tr-title.html, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS/part_pkg sesmon_hour.pm, 1.7, 1.8 sesmon_minute.pm, 1.8, 1.9 sql_external.pm, 1.7, 1.8 sql_generic.pm, 1.7, 1.8 sqlradacct_hour.pm, 1.8, 1.9 voip_cdr.pm, 1.10, 1.11 voip_sqlradacct.pm, 1.19, 1.20
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv9841
Modified Files:
part_pkg_option.pm
Log Message:
s/recur_flat/recur_fee/
Index: part_pkg_option.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg_option.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- part_pkg_option.pm 26 Oct 2004 11:26:33 -0000 1.1
+++ part_pkg_option.pm 15 Apr 2008 19:43:53 -0000 1.2
@@ -2,7 +2,7 @@
use strict;
use vars qw( @ISA );
-use FS::Record qw( qsearch qsearchs );
+use FS::Record qw( qsearch qsearchs dbh );
use FS::part_pkg;
@ISA = qw(FS::Record);
@@ -117,6 +117,25 @@
=back
+=cut
+
+#
+# Used by FS::Upgrade to migrate to a new database.
+#
+#
+
+sub _upgrade_data { # class method
+ my ($class, %opts) = @_;
+
+ my $sql = "UPDATE part_pkg_option SETUP optionname = 'recur_fee'".
+ " WHERE optionname = 'recur_flat'";
+ my $sth = dbh->prepare($sql) or die dbh->errstr;
+ $sth->execute or die $sth->errstr;
+
+ '';
+
+}
+
=head1 BUGS
Possibly.
- Previous message: [freeside-commits] freeside/httemplate/elements select-agent_types.html, NONE, 1.1 select-taxproduct.html, 1.1, 1.2 selectlayers.html, 1.2, 1.3 tr-input-text.html, 1.3, 1.4 tr-part_pkg_freq.html, 1.1, 1.2 tr-pkg_svc.html, NONE, 1.1 tr-select-agent_types.html, NONE, 1.1 tr-title.html, 1.1, 1.2
- Next message: [freeside-commits] freeside/FS/FS/part_pkg sesmon_hour.pm, 1.7, 1.8 sesmon_minute.pm, 1.8, 1.9 sql_external.pm, 1.7, 1.8 sql_generic.pm, 1.7, 1.8 sqlradacct_hour.pm, 1.8, 1.9 voip_cdr.pm, 1.10, 1.11 voip_sqlradacct.pm, 1.19, 1.20
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list