X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fdocs%2Fupgrade8.html;h=6be51d6642503af184bc7ce0f4c3229f263fec5b;hp=702da5a1b95f44ecffc2549ba99254c5efc38bbf;hb=44e51a5c50be350fa698bcdcf86ad5c01a7631a2;hpb=1dd250b6ff2c32f0bb9b4db7606066f34721e7d9 diff --git a/httemplate/docs/upgrade8.html b/httemplate/docs/upgrade8.html index 702da5a1b..6be51d664 100644 --- a/httemplate/docs/upgrade8.html +++ b/httemplate/docs/upgrade8.html @@ -5,7 +5,7 @@

Upgrading to 1.4.0 from 1.3.1

@@ -33,6 +33,7 @@ PerlSetVar Global /usr/local/etc/freeside/asp-global/
    +
  • NOTE: Mason support is still a bit buggy in the 1.4.0 prereleases. This will be fixed before 1.4.0. You have been warned.
  • Run make masondocs
  • Copy masondocs/ to your web server's document space.
  • Copy htetc/handler.pl to your web server's configuration directory. @@ -61,10 +62,93 @@ $ perl Makefile.PL $ make $ su # make install UNINST=1 +
  • Apply the following changes to your database: +
    +CREATE TABLE svc_forward (
    +  svcnum int NOT NULL,
    +  srcsvc int NOT NULL,
    +  dstsvc int NOT NULL,
    +  dst varchar(80),
    +  PRIMARY KEY (svcnum)
    +);
    +
    +CREATE TABLE cust_credit_bill (
    +  creditbillnum int primary key,
    +  crednum int not null,
    +  invnum int not null,
    +  _date int not null,
    +  amount decimal(10,2) not null
    +);
    +
    +CREATE TABLE cust_bill_pay (
    +  billpaynum int primary key,
    +  invnum int not null,
    +  paynum int not null,
    +  _date int not null,
    +  amount decimal(10,2) not null
    +);
    +
    +CREATE TABLE cust_credit_refund (
    +  creditrefundnum int primary key,
    +  crednum int not null,
    +  refundnum int not null,
    +  _date int not null,
    +  amount decimal(10,2) not null
    +);
    +
    +CREATE TABLE part_svc_column (
    +  columnnum int primary key,
    +  svcpart int not null,
    +  columnname varchar(64) not null,
    +  columnvalue varchar(80) null,
    +  columnflag char(1) null
    +);
    +
    +CREATE TABLE queue (
    +  jobnum int primary key,
    +  job varchar not null,
    +  _date int not null,
    +  status varchar(80) not null
    +);
    +
    +CREATE TABLE queue_arg (
    +  argnum int primary key,
    +  jobnum int not null,
    +  arg varchar null
    +);
    +CREATE INDEX queue_arg1 ON queue_arg ( jobnum );
    +
    +CREATE TABLE part_pop_local (
    +  localnum int primary key,
    +  popnum int not null,
    +  city varchar(80) null,
    +  state char(2) null,
    +  npa char(3) not null,
    +  nxx char(3) not null
    +);
    +CREATE UNIQUE INDEX part_pop_local1 ON part_pop_local ( npa, nxx );
    +
    +ALTER TABLE svc_acct ADD domsvc integer NOT NULL;
    +ALTER TABLE svc_domain ADD catchall integer NULL;
    +ALTER TABLE cust_main ADD referral_custnum integer NULL;
    +ALTER TABLE cust_pay ADD custnum integer;
    +ALTER TABLE cust_pay_batch ADD paybatchnum integer;
    +ALTER TABLE cust_refund ADD custnum integer;
    +CREATE INDEX cust_main3 ON cust_main ( referral_custnum );
    +CREATE INDEX cust_credit_bill1 ON cust_credit_bill ( crednum );
    +CREATE INDEX cust_credit_bill2 ON cust_credit_bill ( invnum );
    +CREATE INDEX cust_bill_pay1 ON cust_bill_pay ( invnum );
    +CREATE INDEX cust_bill_pay2 ON cust_bill_pay ( paynum );
    +CREATE INDEX cust_credit_refund1 ON cust_credit_refund ( crednum );
    +CREATE INDEX cust_credit_refund2 ON cust_credit_refund ( refundnum );
    +CREATE UNIQUE INDEX cust_pay_batch_pkey ON cust_pay_batch ( paybatchnum );
    +CREATE UNIQUE INDEX part_svc_column1 ON part_svc_column ( svcpart, columnname );
    +
    +
  • If you are using PostgreSQL, apply the following changes to your database:
     CREATE UNIQUE INDEX agent_pkey ON agent ( agentnum );
    -CREATE UNIQUE INDEX agent_type_pkey agent_type ( typenum );
    +CREATE UNIQUE INDEX agent_type_pkey ON agent_type ( typenum );
     CREATE UNIQUE INDEX cust_bill_pkey ON cust_bill ( invnum );
     CREATE UNIQUE INDEX cust_credit_pkey ON cust_credit ( crednum );
     CREATE UNIQUE INDEX cust_main_pkey ON cust_main ( custnum );
    @@ -105,11 +189,63 @@ ALTER TABLE cust_main ADD COLUMN ship_country char(2) NULL;
     ALTER TABLE cust_main ADD COLUMN ship_daytime varchar(20) NULL;
     ALTER TABLE cust_main ADD COLUMN ship_night varchar(20) NULL;
     ALTER TABLE cust_main ADD COLUMN ship_fax varchar(12) NULL;
    +CREATE INDEX cust_main1 ON cust_main ( ship_last );
    +CREATE INDEX cust_main2 ON cust_main ( ship_company );
     
  • If you wish to enable customer comments, apply the following change to your database:
     ALTER TABLE cust_main ADD COLUMN comments varchar NULL;
     
    +
  • If you are using the signup server, reinstall it according to the instructions. The 1.3.x signup server is not compatible with 1.4.x.
  • Run bin/dbdef-create. +
  • create a service based on svc_forward +
  • Run bin/fs-migrate-svc_acct_sm +
  • Run bin/fs-migrate-payref +
  • Run bin/fs-migrate-part_svc +
  • After running bin/fs-migrate-payref, apply the following changes to your database: + +
    PostgreSQLMySQL, others
    +
    +CREATE TABLE cust_pay_temp (
    +  paynum int primary key,
    +  custnum int not null,
    +  paid decimal(10,2) not null,
    +  _date int null,
    +  payby char(4) not null,
    +  payinfo varchar(16) null,
    +  paybatch varchar(80) null
    +);
    +INSERT INTO cust_pay_temp SELECT * from cust_pay;
    +DROP TABLE cust_pay;
    +ALTER TABLE cust_pay_temp RENAME TO cust_pay;
    +CREATE UNIQUE INDEX cust_pay1 ON cust_pay paynum;
    +CREATE TABLE cust_refund_temp (
    +  refundnum int primary key,
    +  custnum int not null,
    +  _date int null,
    +  refund decimal(10,2) not null,
    +  otaker varchar(8) not null,
    +  reason varchar(80) not null,
    +  payby char(4) not null,
    +  payinfo varchar(16) null,
    +  paybatch varchar(80) null
    +);
    +INSERT INTO cust_refund_temp SELECT * from cust_refund;
    +DROP TABLE cust_refund;
    +ALTER TABLE cust_refund_temp RENAME TO cust_refund;
    +CREATE UNIQUE INDEX cust_refund1 ON cust_refund refundnum;
    +
    +
    +
    +ALTER TABLE cust_pay DROP COLUMN invnum;
    +ALTER TABLE cust_refund DROP COLUMN crednum;
    +
    +
    +
  • IMPORTANT: After applying the second set of database changes, run bin/dbdef-create again. +
  • create the user_policy configuration file as appropriate for your site. +
  • Create the `/usr/local/etc/freeside/cache.datasrc' directory + (ownded by the freeside user). +
  • freeside-queued was installed with the Perl modules. Start it now and ensure that is run upon system startup. +