-
Notifications
You must be signed in to change notification settings - Fork 0
/
UPGRADE
187 lines (135 loc) · 7.42 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
Upgrade Information for previous releases of MRBS:
--------------------------------------------------
If you are upgrading from MRBS 1.2-pre3 or later, then MRBS will
automatically execute any necessary database upgrades when it is first
run. It will prompt you for a database (not MRBS) username and password
with rights to create and alter tables.
It would be a sensible precaution to take a backup of your database before
the upgrade.
1. Take a backup of your database, just in case
2. Take a backup copy of your existing mrbs directory on your web server
3. Upload all the files and directories, except the config file, in the web
directory of the release to your server, overwriting your existing files.
4. Run MRBS. You'll be prompted for a database (note database, not MRBS) username
and password.
MRBS database upgrades are in general intended to be backwards compatible,
so that you should still be able to run the old version of MRBS against the
new database schema. This will allow you to install the new version of MRBS
in a separate directory while you configure and test it. When you are happy
with the new release you can switch the directory to be your production
directory.
There are however some exceptions to this backward compatiblity, namely at
the following transitions:
MRBS 1.4.4.1 -> 1.4.5
In these cases you will not be able to run the old version of MRBS against
the upgraded database. You may therefore choose to make a copy of the
database for test purposes and check that the upgrade process works before
performing the upgrade on your production database.
See the advice in INSTALL about potentially creating a fresh "config.inc.php"
when you upgrade MRBS, especially for a major version change.
Upgrading from prior to MRBS 1.7.1
==================================
The $year_range configuration setting has been abandoned. If you have
it in your config file it won't do anything.
Upgrading from prior to MRBS 1.7.0
==================================
As a security measure, custom HTML for areas and rooms has been disabled by
default, since it could be used to insert malicious JavaScript. However, if
you trust your admins you can re-enable it by setting the following in the
config file:
$auth['allow_custom_html'] = true;
Upgrading from prior to MRBS 1.6.0
==================================
If you upgrade to MRBS 1.6.0 and use your old config.inc.php file, you must
add a line near to the top of the file, just after the <?php tag, to make
the file read:
<?php
namespace MRBS;
Upgrading from prior to MRBS 1.5.0
==================================
MRBS's default authentication scheme changed from 'config' to 'db' with
the release of MRBS 1.5.0. If you had previously used the 'config' scheme
without specifically stating this in your config.inc.php you will need
to make a change to your config.inc.php after upgrading to MRBS 1.5.0. The
change you need is:
$auth["type"] = "config";
Upgrading from prior MRBS 1.4.9
===============================
MRBS now supports the $vocab_override config variable. See
systemdefaults.inc.php for more details. If you have customised your version
of MRBS by editing the lang files, you are advised to use $vocab_override instead.
This will make future upgrades easier.
Upgrading from prior MRBS 1.4.6
===============================
If you were previously using MRBS with $unicode_encoding set to 0, when
you upgrade to 1.4.6 you _MUST_ upgrade the MySQL database from the
previously used character set to Unicode :
You need to use the convert_db_to_utf8.php script to convert text
in the database to UTF8. The administrator should copy the file
into the web directory, run it (choosing the encoding to convert
from) ONCE, and then move it back out of the web directory. We
recommend you backup your database before running this script if
you are at all worried.
Running it more than once will make a right mess of any non-ASCII
text in the database.
Additionally, this script can correct an MRBS database that used
to run on an old version of MySQL (earlier than 4.1), but that
now run on a newer version of MySQL. In this case, the database
contains UTF-8 text, but the tables are considered to be in some
other encoding by MySQL, generally Latin-1. The
convert_db_to_utf8.php detects this condition, and offers
the administrator the chance to correct the database 'collation'.
===
The following configuration variables are now deprecated. Their use is
supported for the moment but you should change your config file now to
use the new variables as support for the old variables may be dropped in the
future:
$mail_settings['admin_all'] replaced by $mail_settings['on_new'] and
$mail_settings['on_change']
$mail_settings['admin_on_delete'] replaced by $mail_settings['on_delete']
$dateformat replaced by $strftime_format['daymonth']
Upgrading from prior MRBS 1.4.5
===============================
MRBS 1.4.5 introduces the concept of tentative bookings, or bookings that
require confirmation. To avoid confusion, what were previously known as
"provisional bookings" have now been renamed "bookings requiring approval"
and the config variable $provisional_enabled has been renamed
$approval_enabled. You should update your config file accordingly.
Please also see the note about database compatibility above.
Upgrading from prior MRBS 1.2-pre3
==================================
mrbs 1.2-pre3 introduced area and room administrator email fields.
Please apply the upgrade3.my.sql to add these fields. This file should work
both with mysql and pgsql.
Upgrading from prior MRBS 1.2-pre2
==================================
Upgrading mysql database from previous charsets to Unicode :
You can use convert_db_to_utf8.php script to convert text in the
database to UTF8. The administrator should copy the file into
the web directory, run it (choosing the encoding to convert from)
ONCE, and then move it back out of the web directory. We recommend
you backup your database before running this script if you are at
all worried.
Running it more than once will make a right mess of any non-ASCII
text in the database.
Upgrading from prior to MRBS 1.0 final
======================================
Please apply the upgrade2.my.sql (if using MySQL) or the
the upgrade2.pg.sql (if using PostgreSQL) script, which
adds a new column to the 'mrbs_repeat' table to support
"n-weekly" repeats.
Upgrading from prior to MRBS 1.0-pre1
======================================
A change in version 1.0-pre1 might affect the appearance of entries in your
existing database. Prior versions of MRBS did an extra and unnecessary
level of backslash-escaping on room, area, and entry names and
descriptions. This applied to certain characters such as single quote
mark(') and backslash(\). As of version 1.0-pre1, these characters are
handled correctly. If you see extra backslashes when MRBS displays names or
descriptions, it is because these are in actually your database. You can
edit the entries in MRBS or directly with your database SQL tool, or just
ignore them.
Upgrading from prior to MRBS 0.7
================================
There was a change to the database schema at version 0.7. See the
information in INSTALL on using the upgrade.my.sql script.