*** empty log message ***
[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.1.x from 1.2.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 UPDATE cust_main_county SET country = "US" where country IS NULL;
23 CREATE TABLE part_title (
24    titlenum int NOT NULL,
25    title varchar(80) NOT NULL,
26    PRIMARY KEY (titlenum)
27 );
28 CREATE TABLE cust_main_invoice (
29    destnum int NOT NULL,
30    custnum int NOT NULL,
31    dest varchar(80) NOT NULL,
32    PRIMARY KEY (destnum),
33    INDEX ( custnum )
34 );
35 </pre>
36   <li>Run bin/dbdef-create.  This file uses MySQL-specific syntax.  If you are r
37 unning a different database engine you will need to modify it slightly.
38   <li>Copy or symlink htdocs and site_perl to the new copies.
39 </body>