merging vpopmail support branch
[freeside.git] / htdocs / docs / upgrade8.html
1 <head>
2   <title>Upgrading to 1.3.2</title>
3 </head>
4 <body>
5 <h1>Upgrading to 1.3.2 from 1.3.1</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>If migrating from less than 1.2.3, see these <a href="upgrade5.html">instructions</a> first.
12   <li>If migrating from less than 1.3.0, see these <a href="upgrade6.html">instructions</a> first.
13   <li>If migrating from less than 1.3.1, see these <a href="upgrade7.html">instructions</a> first.
14   <li>Back up your data and current Freeside installation.
15   <li>Apply the following changes to your database:
16 <pre>
17 CREATE TABLE svc_forward (
18   svcnum int NOT NULL,
19   srcsvc int NOT NULL,
20   dstsvc int NOT NULL,
21   dst varchar(80),
22   PRIMARY KEY (svcnum)
23 );
24 ALTER TABLE svc_acct ADD domsvc integer NOT NULL;
25 ALTER TABLE svc_domain ADD catchall integer;
26 ALTER TABLE part_svc ADD svc_acct__domsvc integer NULL;
27 ALTER TABLE part_svc ADD svc_acct__domsvc_flag char(1) NULL;
28 ALTER TABLE part_svc ADD svc_domain__catchall integer NULL;
29 ALTER TABLE part_svc ADD svc_domain__catchall_flag char(1) NULL;
30 ALTER TABLE part_svc ADD svc_forward__srcsvc integer NULL;
31 ALTER TABLE part_svc ADD svc_forward__srcsvc_flag char(1) NULL;
32 ALTER TABLE part_svc ADD svc_forward__dstsvc integer NULL;
33 ALTER TABLE part_svc ADD svc_forward__dstsvc_flag char(1) NULL;
34 ALTER TABLE part_svc ADD svc_forward__dst integer NULL;
35 ALTER TABLE part_svc ADD svc_forward__dst_flag char(1) NULL;
36
37 </pre>
38   <li>Copy or symlink htdocs to the new copy.
39   <li>Remove the symlink or directory <i>(your_site_perl_directory)</i>/FS.
40   <li>Change to the FS directory in the new tarball, and build and install the
41       Perl modules:
42     <pre>
43 $ cd FS/
44 $ perl Makefile.PL
45 $ make
46 $ su
47 # make install</pre>
48   <li>Run bin/dbdef-create.
49   <li>create a service based on svc_forward
50   <li>Run bin/fs-migrate-svc_acct_sm
51   <li>create the conf.dbsrc/user_policy as appropriate for your site
52 </body>