ACL bootstrapping/upgrade
[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   - Run "bin/mapsecrets2access_user username"
23   - You can then add more restrictive groups and move your users into them
24
25 If you have any records in the cust_tax_exempt table, you *MUST* migrate them
26 to the new cust_tax_exempt_pkg table.  An example script to get you started is
27 in bin/fs-migrate-cust_tax_exempt - it may need to be customized for your
28 specific data.
29
30 Optional for better zip code report performance:
31 CREATE INDEX cust_main16 on cust_main ( zip );
32 CREATE INDEX cust_main17 on cust_main ( ship_zip );
33
34 Optional to eliminate harmless but noisy warnings:
35 UPDATE cust_main_county SET exempt_amount = 0 WHERE exempt_amount IS NULL;
36
37 ------
38
39 make install-docs
40  (or "make deploy" if you've got everything setup in the Makefile)
41
42 (errors?  try "make clean" then "make install-perl-modules", then
43  "make install-docs" or "make deploy" again)
44