summaryrefslogtreecommitdiffstats
path: root/upgrading/4.5.0.txt
blob: 37b2b810de6747a09960c21218ca52bfcdced0f5 (plain)
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
1. Add Timezone column to Users:

---
ALTER TABLE Users ADD COLUMN Timezone VARCHAR(32) NOT NULL DEFAULT 'UTC';
---

2. Add LastSSHLogin and LastSSHLoginIPAddress columns to the Users table:

---
ALTER TABLE Users
	ADD COLUMN LastSSHLogin BIGINT UNSIGNED NOT NULL DEFAULT 0,
	ADD COLUMN LastSSHLoginIPAddress VARCHAR(45) NULL DEFAULT NULL;
---

3. Convert the IPAddress column of the Bans table to VARCHAR(45). If the table
   contains any active bans, convert them accordingly:

----
ALTER TABLE Bans MODIFY IPAddress VARCHAR(45) NULL DEFAULT NULL;
----

4. Resize the Passwd column of the Users table:

---
ALTER TABLE Users MODIFY Passwd VARCHAR(255) NOT NULL;
---