changes from 1.2.3 release, fixes from webdemo
[freeside.git] / htdocs / docs / upgrade5.html
1 <head>
2   <title>Upgrading to 1.3.0</title>
3 </head>
4 <body>
5 <h1>Upgrading to 1.2.3 from 1.2.2</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>If migrating from less than 1.2.0, see these <a href="upgrade3.html">instructions</a> first.
10   <li>If migrating from less than 1.2.2, see these <a href="upgrade4.html">instructions</a> first.
11   <li>Back up your data and current Freeside installation.
12   <li>Apply the following changes to your database:
13 <pre>
14 ALTER TABLE svc_acct_pop ADD loc CHAR(4);
15 CREATE TABLE prepay_credit (
16   prepaynum int NOT NULL,
17   identifier varchar(80) NOT NULL,
18   amount decimal(10,2) NOT NULL,
19   PRIMARY KEY (prepaynum),
20   INDEX (identifier)
21 );
22 CREATE TABLE domain_record (
23   recnum int NOT NULL,
24   svcnum int NOT NULL,
25   reczone varchar(80) NOT NULL,
26   recaf char(2) NOT NULL,
27   rectype char(5) NOT NULL,
28   recdata varchar(80) NOT NULL,
29   PRIMARY KEY (recnum)
30 );
31 CREATE TABLE svc_www (
32   svcnum int NOT NULL,
33   recnum int NOT NULL,
34   usersvc int NOT NULL,
35   PRIMARY KEY (svcnum)
36 );
37 ALTER TABLE part_svc ADD svc_www__svcnum varchar(80) NULL;
38 ALTER TABLE part_svc ADD svc_www__svcnum_flag char(1) NULL;
39 ALTER TABLE part_svc ADD svc_www__recnum varchar(80) NULL;
40 ALTER TABLE part_svc ADD svc_www__recnum_flag char(1) NULL;
41 ALTER TABLE part_svc ADD svc_www__usersvc varchar(80) NULL;
42 ALTER TABLE part_svc ADD svc_www__uesrsvc_flag char(1) NULL;
43
44 </pre>
45   <li>Copy or symlink htdocs to the new copy.
46   <li>Remove the symlink or directory <i>(your_site_perl_directory)</i>/FS.
47   <li>Change to the FS directory in the new tarball, and build and install the
48       Perl modules:
49     <pre>
50 $ cd FS/
51 $ perl Makefile.PL
52 $ make
53 $ su
54 # make install</pre>
55   <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.
56 </body>