summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorlevinse <levinse>2011-02-23 06:02:18 +0000
committerlevinse <levinse>2011-02-23 06:02:18 +0000
commitd2b8818ae62696a1503faf12cb991c42e2d40e92 (patch)
tree6dfb2f9520fce1747f694f37334a17df6ae1b9f0 /bin
parent57e997e6cb5137fccbba8f9693d77ef2ff32245c (diff)
custom freeside migration script, RT10536
Diffstat (limited to 'bin')
-rwxr-xr-xbin/b-move-customers27
1 files changed, 10 insertions, 17 deletions
diff --git a/bin/b-move-customers b/bin/b-move-customers
index d61244796..c17046bf2 100755
--- a/bin/b-move-customers
+++ b/bin/b-move-customers
@@ -20,18 +20,12 @@ use FS::svc_domain;
use FS::cust_pkg;
my $DANGEROUS = 0;
-my $DRY = 1;
+my $DRY = 0;
-# XXX: use SSL for real version
-my $source_datasrc = '';
-my $source_user = '';
-my $source_pw = '';
+my $source_datasrc = 'dbi:Pg:dbname=benson';
-#### MANUAL ####
-# 1. Destination agent must be created with correct agentnum
-# 2. Destination refnum must be created as per below
-# 3. System domain must be created appropriately
-#####
+my $source_user = 'freeside';
+my $source_pw = '';
my $dest_agentnum = 3;
my $src_agentnum = 1;
@@ -41,14 +35,13 @@ my %domsvc_map = (
2 => 10375,
);
-# XXX
my %eventparts = (
- # 'CARD' => [ 1, ],
- # 'CHEK' => [ 2, ],
- # 'BILL' => [ 5, ],
- # 'DCHK' => [ 12, ],
- # 'DCRD' => [ 15, ],
- # 'COMP' => [],
+ 'CARD' => [ 13, 14, 15 ],
+ 'CHEK' => [],
+ 'BILL' => [ 13, ],
+ 'DCHK' => [],
+ 'DCRD' => [ 13, ],
+ 'COMP' => [],
);
#--