summaryrefslogtreecommitdiff
path: root/doc/UPGRADE-2.2.7-2.4.0
blob: b5c317b2c869b543ac52359b875b1480459964ef (plain)
  1. Upgrading to version 2.4.0
  2. 1. install LedgerSMB over top
  3. # cd /usr/local
  4. # tar zxvf sql-ledger-2.4.0.tar.gz
  5. 2. fix permissions
  6. # chown -hR nobody:nogroup *
  7. # chmod 711 templates users spool
  8. replace nobody:nogroup with your web server user and group
  9. 3. install the plpgsql language compiler for PostgreSQL
  10. # createlang plpgsql <dataset>
  11. 4. install plpgsql in template1
  12. # createlang plpgsql template1
  13. 5. Edit your templates! The old address fields are obsolete.
  14. The new fields are:
  15. address1
  16. address2
  17. city
  18. state
  19. zipcode
  20. country
  21. The same applies to the "shipto" addresses.
  22. Before you log in edit Pg-upgrade-2.3.4-2.3.5.sql and change the
  23. way addresses are rewritten if you don't want US style addresses.
  24. North-american addresses are usually in the form of
  25. Five Star Stables
  26. 123 Horsehoe Blvd.
  27. Sweetgrass, MT 19867
  28. U.S.A
  29. addr1 --> address1
  30. addr2 --> city
  31. addr3 --> country
  32. addr4 --> state
  33. addr4 was put into the state field to bring the field forward
  34. to the new layout. To check if there is something in the field run
  35. a report and sort by the "State" field.
  36. Either edit the records or run the SQL queries below to take them apart.
  37. If you have anything in the "state" field change the records to match
  38. the others before you run the following queries.
  39. dbname=# update customer set state = substr(city,strpos(city,' ')+1);
  40. dbname=# update customer set zipcode = substr(state,strpos(state,' ')+1);
  41. dbname=# update customer set state = substr(state,1,strpos(state,' ')-1);
  42. dbname=# update customer set city = substr(city,1,strpos(city,',')-1);
  43. do the same with the vendor and shipto table.
  44. 6. create a new set of templates
  45. * load admin.pl and edit one of the user's
  46. * in the "New Templates" field enter "new" and save the user
  47. * go back in your browser so you have the same screen again
  48. as before
  49. * change the template directory back to what it was before
  50. the change and save the user
  51. * drop into a shell window
  52. * cd to sql-ledger/templates/new
  53. * copy the additional templates to your private template directory
  54. 7. Printers
  55. printer setup has changed to multiple printers which allow
  56. users to choose a printer. Printers can be defined in ledger-smb.conf
  57. Oracle and DB2:
  58. ===============
  59. There is no upgrade available for Oracle and DB2 yet.