calculate owed as subquery here too
[freeside.git] / README.1.4.0pre12
1 the following is necessary to upgrade from 1.4.0pre11 to 1.4.0pre12
2
3 if you're upgrading from before 1.4.0pre12 see README.1.4.0pre11 first!
4
5 if you're upgrading from 1.3.1 follow the instructions in
6 httemplate/docs/upgrade8.html instead
7
8 ----
9
10 install HTML-Widgets-SelectLayers from CPAN or http://www.420.am/selectlayers
11
12 install the FS perl modules and httemplate as per install.html or upgrade8.html
13
14 ALTER TABLE cust_bill_event ADD status varchar(80);
15 ALTER TABLE cust_bill_event ADD statustext text NULL;
16 UPDATE cust_bill_event SET status = 'done';
17 DROP INDEX cust_bill_event1;
18
19 CREATE TABLE radius_usergroup (
20   usergroupnum int primary key,
21   svcnum int not null,
22   groupname varchar(80) not null
23 );
24 CREATE INDEX radius_usergroup1 ON radius_usergroup ( svcnum );
25 CREATE INDEX radius_usergroup2 ON radius_usergroup ( groupname );
26
27 ALTER TABLE svc_acct ADD sec_phrase varchar(80) NULL;
28 CREATE TABLE msgcat (
29   msgnum int primary key,
30   msgcode varchar(80) not null,
31   locale varchar(16) not null,
32   msg text not null
33 );
34 CREATE INDEX msgcat1 ON msgcat ( msgcode, locale );
35
36 CREATE TABLE export_svc (
37   exportsvcnum int primary key,
38   exportnum int not null,
39   svcpart int not null
40 );
41 CREATE UNIQUE INDEX export_svc1 ON export_svc ( exportnum, svcpart );
42 CREATE INDEX export_svc2 ON export_svc ( exportnum );
43 CREATE INDEX export_svc3 ON export_svc ( svcpart );
44
45 ALTER TABLE part_export RENAME svcpart TO deprecated;
46
47 ALTER TABLE part_pkg ADD taxclass varchar(80) NULL;
48
49 CREATE TABLE cust_tax_exempt (
50   exemptnum int primary key,
51   custnum int not null,
52   taxnum int not null,
53   year int not null,
54   month int not null,
55   amount decimal(10,2)
56 );
57 CREATE UNIQUE INDEX cust_tax_exempt1 ON cust_tax_exempt ( custnum, taxnum, year, month );
58
59 ALTER TABLE cust_main_county ADD taxclass varchar(80) NULL;
60 ALTER TABLE cust_main_county ADD exempt_amount decimal(10,2);
61
62 Run bin/dbdef-create
63
64 Run bin/create-history-tables
65
66 Run bin/dbdef-create again
67
68 Run bin/populate-msgcat
69
70 Set the `locale' configuration option to `en_US'.
71
72 the mxmachines, nsmachines, arecords and cnamerecords configuration values have been deprecated.  Use the defaultrecords configuration value instead.
73
74 New export code has landed!  If you were using the icradiusmachines,
75 icradius_mysqldest, icradius_mysqlsource, or icradius_secrets files, see
76 the "sqlradius" export instead.  Use MySQL replication 
77 <http://www.mysql.com/documentation/mysql/bychapter/manual_MySQL_Database_Administration.html#Replication>
78 or point the "sqlradius" export directly at your external ICRADIUS or
79 FreeRADIUS (or through an SSL-encrypting proxy...)
80
81 Arrange for freeside-expiration-alerter to be run daily, if desired.
82
83 Restart Apache and freeside-queued
84