-
Notifications
You must be signed in to change notification settings - Fork 0
/
UPGRADING
30 lines (20 loc) · 880 Bytes
/
UPGRADING
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
Updating database for f9855324c09e674daa276cff21d437080c1aee85
--------------------------------------------------------------
UPDATE quotas_limits, quotas_tracking
SET quotas_limits.CounterLimit = ceil(quotas_limits.CounterLimit / 1024),
quotas_tracking.Counter = ceil(quotas_tracking.Counter / 1024)
WHERE quotas_tracking.QuotasLimitsID = quotas_limits.ID
AND quotas_limits.Type = "MessageCumulativeSize";
UPDATE session_tracking SET Size = ceil(Size / 1024);
Upgrading from 2.0.x
--------------------
NOTE: This is required for upgrading svn below r348!!!
ALTER TABLE accounting ADD
LastAccounting SMALLINT NOT NULL DEFAULT '0'
AFTER Data;
ALTER TABLE quotas ADD
LastQuota SMALLINT NOT NULL DEFAULT '0'
AFTER Data;
NOTE: This is required for upgrading svn below r387!!!!
ALTER TABLE session_tracking CHANGE
Timestamp UnixTimestamp BIGINT NOT NULL;