Add package base name in request close notifications
[aur.git] / upgrading / 4.2.0.txt
blob0bf9a31991d9b1d1da09f701b60434308da11fda
1 1. Add a new table to store providers from official packages:
3 ----
4 CREATE TABLE OfficialProviders (
5         ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
6         Name VARCHAR(64) NOT NULL,
7         Provides VARCHAR(64) NOT NULL,
8         PRIMARY KEY (ID)
9 ) ENGINE = InnoDB;
10 CREATE UNIQUE INDEX ProviderNameProvides ON OfficialProviders (Name, Provides);
11 ----
13 2. Resize the email address field:
15 ----
16 ALTER TABLE Users MODIFY Email VARCHAR(254) NOT NULL;
17 ----
19 3. Add new columns to the PackageComments table:
21 ----
22 ALTER TABLE PackageComments
23         ADD COLUMN DelTS BIGINT UNSIGNED NULL DEFAULT NULL,
24         ADD COLUMN PinnedTS BIGINT UNSIGNED NOT NULL DEFAULT 0;
25 ----
27 4. Update the deletion time stamp of all deleted comments:
29 ----
30 UPDATE PackageComments SET DelTS = EditedTS WHERE DelUsersID IS NOT NULL;
31 ----
33 5. Add new column to store the closure comment of package requests:
35 ----
36 ALTER TABLE PackageRequests ADD COLUMN ClosureComment TEXT NOT NULL DEFAULT '';
37 ----
39 6. Change FlaggerComment from VARCHAR to TEXT:
41 ----
42 ALTER TABLE PackageBases MODIFY COLUMN FlaggerComment TEXT NOT NULL DEFAULT '';
43 ----
45 7. Rename the CommentNotify table to PackageNotifications:
47 ----
48 ALTER TABLE CommentNotify RENAME TO PackageNotifications;
49 ----
51 8. Add new columns to store notification settings:
53 ----
54 ALTER TABLE Users
55         ADD COLUMN CommentNotify TINYINT(1) NOT NULL DEFAULT 1,
56         ADD COLUMN UpdateNotify TINYINT(1) NOT NULL DEFAULT 0;
57 ----