batch refactor
[freeside.git] / README.1.7.0
1
2 install DBIx::DBSchema 0.31 (or later)
3 install Color::Scheme
4 install Data::Table
5
6 ALTER TABLE cust_pay_batch ADD COLUMN batchnum int;
7 ALTER TABLE cust_pay_batch ALTER COLUMN batchnum SET NOT NULL;
8 ALTER TABLE cust_pay_batch ADD COLUMN payinfo varchar(512);
9 UPDATE cust_pay_batch SET payinfo = cardnum;
10 ALTER TABLE cust_pay_batch DROP COLUMN cardnum;
11 ALTER TABLE cust_pay_batch ALTER COLUMN exp DROP NOT NULL;
12 ALTER TABLE h_cust_pay_batch ADD COLUMN payinfo varchar(512);
13 UPDATE h_cust_pay_batch SET payinfo = cardnum;
14 ALTER TABLE h_cust_pay_batch DROP COLUMN cardnum;
15 ALTER TABLE h_cust_pay_batch ALTER COLUMN exp DROP NOT NULL;
16
17 make install-perl-modules
18 run "freeside-upgrade username" to uprade your database schema
19
20 (if freeside-upgrade hangs, try stopping Apache, all Freeside processes, and
21  anything else connected to your database, especially on older Pg versions)
22
23 ACL bootstrapping:
24   - cd /usr/local/etc/freeside; chown freeside mapsecrets htpasswd
25   - Run "bin/mapsecrets2access_user username" as the freeside user
26   - You can then add more restrictive groups and move your users into them
27
28 If you have any records in the cust_tax_exempt table, you *MUST* migrate them
29 to the new cust_tax_exempt_pkg table.  An example script to get you started is
30 in bin/fs-migrate-cust_tax_exempt - it may need to be customized for your
31 specific data.
32
33 Optional for better zip code report performance:
34 CREATE INDEX cust_main16 on cust_main ( zip );
35 CREATE INDEX cust_main17 on cust_main ( ship_zip );
36
37 Optional to eliminate harmless but noisy warnings:
38 UPDATE cust_main_county SET exempt_amount = 0 WHERE exempt_amount IS NULL;
39
40 ------
41
42 make install-docs
43  (or "make deploy" if you've got everything setup in the Makefile)
44
45 (errors?  try "make clean" then "make install-perl-modules", then
46  "make install-docs" or "make deploy" again)
47