time-based prepaid cards, session monitor. woop!
[freeside.git] / htdocs / docs / upgrade6.html
1 <head>
2   <title>Upgrading to 1.2.4</title>
3 </head>
4 <body>
5 <h1>Upgrading to 1.2.4 from 1.2.3</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>Back up your data and current Freeside installation.
13   <li>Copy the <i>invoice_template</i> file from the <i>conf/</i> directory in the distribution to your <a href="config.html">configuration directory</a>.
14   <li>Install the <a href="http://www.perl.com/CPAN/modules/by-module/Text/">Text-Template</a> Perl module.
15   <li>Apply the following changes to your database:
16 <pre>
17 CREATE TABLE domain_record (
18   recnum int NOT NULL,
19   svcnum int NOT NULL,
20   reczone varchar(80) NOT NULL,
21   recaf char(2) NOT NULL,
22   rectype char(5) NOT NULL,
23   recdata varchar(80) NOT NULL,
24   PRIMARY KEY (recnum)
25 );
26 CREATE TABLE svc_www (
27   svcnum int NOT NULL,
28   recnum int NOT NULL,
29   usersvc int NOT NULL,
30   PRIMARY KEY (svcnum)
31 );
32 ALTER TABLE part_svc ADD svc_www__recnum varchar(80) NULL;
33 ALTER TABLE part_svc ADD svc_www__recnum_flag char(1) NULL;
34 ALTER TABLE part_svc ADD svc_www__usersvc varchar(80) NULL;
35 ALTER TABLE part_svc ADD svc_www__uesrsvc_flag char(1) NULL;
36 ALTER TABLE svc_acct CHANGE _password _password varchar(50) NULL;
37 ALTER TABLE svc_acct ADD seconds integer NULL;
38 ALTER TABLE part_svc ADD svc_acct__seconds integer NULL;
39 ALTER TABLE part_svc ADD svc_acct__seconds_flag char(1) NULL;
40 ALTER TABLE prepay_credit ADD seconds integer NULL;
41
42 </pre>
43   <li>Copy or symlink htdocs to the new copy.
44   <li>Remove the symlink or directory <i>(your_site_perl_directory)</i>/FS.
45   <li>Change to the FS directory in the new tarball, and build and install the
46       Perl modules:
47     <pre>
48 $ cd FS/
49 $ perl Makefile.PL
50 $ make
51 $ su
52 # make install</pre>
53   <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.
54 </body>