projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start of Enswitch CDR import, RT#11613
[freeside.git]
/
FS
/
FS
/
Upgrade.pm
diff --git
a/FS/FS/Upgrade.pm
b/FS/FS/Upgrade.pm
index
185ba16
..
ba4a085
100644
(file)
--- a/
FS/FS/Upgrade.pm
+++ b/
FS/FS/Upgrade.pm
@@
-12,7
+12,7
@@
use FS::svc_domain;
$FS::svc_domain::whois_hack = 1;
@ISA = qw( Exporter );
$FS::svc_domain::whois_hack = 1;
@ISA = qw( Exporter );
-@EXPORT_OK = qw( upgrade_schema upgrade upgrade_sqlradius );
+@EXPORT_OK = qw( upgrade_schema upgrade
_config upgrade
upgrade_sqlradius );
$DEBUG = 1;
$DEBUG = 1;
@@
-33,6
+33,22
@@
database upgrades.
=over 4
=over 4
+=item upgrade_config
+
+=cut
+
+#config upgrades
+sub upgrade_config {
+ my %opt = @_;
+
+ my $conf = new FS::Conf;
+
+ $conf->touch('payment_receipt')
+ if $conf->exists('payment_receipt_email')
+ || $conf->config('payment_receipt_msgnum');
+
+}
+
=item upgrade
=cut
=item upgrade
=cut
@@
-163,6
+179,12
@@
sub upgrade_data {
#migrate to templates
'msg_template' => [],
#migrate to templates
'msg_template' => [],
+ #return unprovisioned numbers to availability
+ 'phone_avail' => [],
+
+ #insert scripcondition
+ 'TicketSystem' => [],
+
;
\%hash;
;
\%hash;