add svc_forward, depriciate svc_acct_sm
[freeside.git] / htdocs / docs / upgrade3.html
1 <head>
2   <title>Upgrading to 1.2.x</title>
3 </head>
4 <body>
5 <h1>Upgrading to 1.2.x from 1.1.x</h1>
6 <ul>
7   <li>If migrating from 1.0.0, see these <a href="upgrade.html">instructions</a> first.
8   <li>If migrating from less than 1.1.4, see these <a href="upgrade2.html">instructions</a> first.
9   <li>Back up your data and current Freeside installation.
10   <li>Install the Perl module <a href="http://www.perl.com/CPAN/modules/by-module/String/">String-Approx</a>
11   <li><a href="config.html">Configuration file</a> location has changed!
12   <li>Move /var/spool/freeside/dbdef.<i>datasrc</i> to /usr/local/etc/freeside/dbdef.<i>datasrc</i>.
13   <li>Move /var/spool/freeside/counters to /usr/local/etc/freeside/counters.<i>datasrc</i>.
14   <li>Move /var/spool/freeside/export to /usr/local/etc/freeside/export.<i>datasrc</i>.
15   <li>Apply the following changes to your database:
16 <pre>
17 <!-- ALTER TABLE cust_main ADD middle varchar(80) NULL;
18 ALTER TABLE cust_main ADD titlenum int NULL;
19 -->ALTER TABLE cust_main CHANGE state state varchar(80) NULL;
20 ALTER TABLE cust_main_county CHANGE state state varchar(80) NULL;
21 ALTER TABLE cust_main_county ADD country char(2);
22 ALTER TABLE cust_main CHANGE paydate paydate varchar(10);
23 UPDATE cust_main SET country = "US" where country IS NULL OR country = '';
24 UPDATE cust_main_county SET country = "US" where country IS NULL OR country = "";
25 <!--CREATE TABLE part_title (
26    titlenum int NOT NULL,
27    title varchar(80) NOT NULL,
28    PRIMARY KEY (titlenum)
29 );
30 -->CREATE TABLE cust_main_invoice (
31    destnum int NOT NULL,
32    custnum int NOT NULL,
33    dest varchar(80) NOT NULL,
34    PRIMARY KEY (destnum),
35    INDEX ( custnum )
36 );
37 </pre>
38   <li>Run bin/dbdef-create.  This file uses MySQL-specific syntax.  If you are running a different database engine you will need to modify it slightly.
39   <li>Copy or symlink htdocs and site_perl to the new copies.
40 </body>