summaryrefslogtreecommitdiffstats
path: root/upgrading/4.2.0.txt
blob: 7482204d253d2f373de39af0cd6273ac34998bec (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
27
28
29
30
1. Add a new table to store providers from official packages:

----
CREATE TABLE OfficialProviders (
	ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
	Name VARCHAR(64) NOT NULL,
	Provides VARCHAR(64) NOT NULL,
	PRIMARY KEY (ID)
) ENGINE = InnoDB;
CREATE UNIQUE INDEX ProviderNameProvides ON OfficialProviders (Name, Provides);
----

2. Resize the email address field:

----
ALTER TABLE Users MODIFY Email VARCHAR(254) NOT NULL;
----

3. Add new column in PackageComments for pinning system.

----
ALTER TABLE PackageComments ADD COLUMN PinnedTS BIGINT UNSIGNED NOT NULL DEFAULT 0;
----


3. Add new column to store the closure comment of package requests:

----
ALTER TABLE PackageRequests ADD COLUMN ClosureComment TEXT NOT NULL DEFAULT '';
----