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