X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fdocs%2Fupgrade10.html;h=2a4b0d97578acfa457d232fa554ab71762304d3e;hp=8d90ab7a23f14bb3da2ce9a033265f052a958e1e;hb=50f25b285b2caf77d267ed66f03e56924ad7229f;hpb=4c9e6e4863e2045d984933ab0e229b5dd500e1f7 diff --git a/httemplate/docs/upgrade10.html b/httemplate/docs/upgrade10.html index 8d90ab7a2..2a4b0d975 100644 --- a/httemplate/docs/upgrade10.html +++ b/httemplate/docs/upgrade10.html @@ -31,7 +31,7 @@ Perl or Linux.
  • install NetAddr::IP, Chart::Base, Locale::SubCountry, Text::CSV_XS, Spreadsheet::WriteExcel, IO-stringy (IO::Scalar), Frontier::RPC (Frontier::RPC2), MIME::Entity (MIME-tools), IPC::Run3, Net::Whois::Raw, -JSON and Term::ReadKey +JSON, Term::ReadKey and Color::Scheme
  • Apply the following changes to your database: @@ -46,6 +46,14 @@ DROP INDEX cust_bill_pkg1;
     ALTER TABLE cust_main ALTER COLUMN payinfo varchar(512) NULL;
     ALTER TABLE h_cust_main ALTER COLUMN payinfo varchar(512) NULL;
    +ALTER TABLE cust_pay_batch ADD COLUMN batchnum int NOT NULL;
    +ALTER TABLE cust_pay_batch ALTER COLUMN batchnum SET NOT NULL;
    +ALTER TABLE cust_pay_batch ADD COLUMN payinfo varchar(512) NULL;
    +UPDATE cust_pay_batch SET payinfo = cardnum;
    +ALTER TABLE cust_pay_batch DROP COLUMN cardnum;
    +ALTER TABLE h_cust_pay_batch ADD COLUMN payinfo varchar(512) NULL;
    +UPDATE h_cust_pay_batch SET payinfo = cardnum;
    +ALTER TABLE h_cust_pay_batch DROP COLUMN cardnum;
     
    On older Pg versions that don't support altering columns directly, you will need to dump the database, edit the schema definitions in the dump file, and reload.