-
Notifications
You must be signed in to change notification settings - Fork 6
/
UPGRADE
95 lines (75 loc) · 3.95 KB
/
UPGRADE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Upgrading to LedgerSMB 1.3
From LedgerSMB 1.3:
Untar over the top and then select step 1 or 2:
1) Automated process (all platforms):
* direct browser to the setup.pl file in the directory you are in.
* provide PostgreSQL superuser credentials and the name of your data base.
* Click continue.
* [Optionally] Click 'Backup DB' and/or 'Backup Roles'.
* Click 'Yes', answering "LedgerSMB 1.3 found. Rebuild/Upgrade?"
* Repeat for each database.
2) Shell script process (UNIX/Linux only):
* cd to the sql/modules directory of the ledgersmb installation.
* sh reload_modules.sh [dbname]
* repeat the shell script for each database.
From LedgerSMB 1.1 and earlier:
For versions prior to 1.2, please upgrade to LedgerSMB 1.2 before upgrading to
1.3.x. To do this upgrade, simply untar the version of 1.2.x over your old
installation and run the relevant database upgrade scripts (in
sql/upgrade/legacy). Then proceed below.
From LedgerSMB 1.2.x
* Untar over the top.
* Check your Perl dependencies:
* perl Makefile.PL
* make
* make test
But run 'make test' under an english locale, because some tests check for english error messages.
(Bash tips: LANG=en_US make test )
* run the install.sh script.
* fix ledgersmb.conf with new config
copy ledgersmb.conf to ledgersmb.conf.old
copy ledgersmb.conf.default to ledgersmb.conf and reconfigure.
* direct your browser to the setup.pl script in your ledgersmb directory (via
http) and follow the prompts:
* Provide Pg superuser and database information for your existing database
(the database created for your company)
* Click continue when asked to upgrade
* When asking for upgrade info:
* contrib_dir is the directory where either tablefunc.control or
tablefunc.sql is, depending on your PostgreSQL version (9.1 and higher
would use tablefunc.control)
* Default country is the country to map contacts which have no country
information to. This is the short, two letter ISO code for the
country, such as AU for Austria, or US for United States. It is
case insensitive.
* Default ar/ap accounts provide links to accounts for purposes of
selection among multiple AR/AP accounts, and for purposes of payment
reversals. Enter account numbers here, like 1200 for AR and 2100 for
AP
* Provide user information.
Note: users are recreated as PostreSQL db users with application acess instead
of just imported from your 1.2.x install. New users created by the administrative
functions have their password auth timing out after a day, unless they change their
passwords after logging into LedgerSMB.
* log into the application and create additional users under System/User
Management
ROLLING BACK AN UPGRADE
=========================
LedgerSMB upgrades are non-destructive and work by moving data to the side,
adding mapping data, and then populating a new LedgerSMB schema. The data is retained in an old schema, with a naming convention like lsmbnn (for LedgerSMB) or slnn (for SQL-Ledger). The following schemas are used currently:
lsmb13: LedgerSMB 1.3
lsmb12: LedgerSMB 1.2
sl28: SQL-Ledger 2.8
We include downgrade scripts for previous LSMB versions. This works by removing
the mapping the data and restoring the old schema. Changes made in the process
of preparing for upgrades (the test screens for unique identifiers etc) are
preserved but nothing else is.
The downgrade scripts assume that LedgerSMB is installed in the public schema.
If this is not the case, then the scripts will have to be edited before running.
UPGRADING INTO A NON-STANDARD SCHEMA
====================================
The installation and upgrade scripts are schema-agnostic. They install the
components into the first available schema on the installing super-users
search_path.
This should be done for users of the software too (using alter database or alter
user), and it must also be configured in the ledgersmb.conf.