Fix l10n of "more"
[aur.git] / upgrading / 1.8.0.txt
blob7b1dcc00e2525d0f37b1611c7875a5f9ab62221d
1 1. Run the following MySQL statements:
3 ----
4 ALTER TABLE Packages ADD OutOfDateTS BIGINT UNSIGNED NULL DEFAULT NULL;
5 UPDATE Packages SET OutOfDateTS = UNIX_TIMESTAMP() WHERE OutOfDate = 1;
6 ALTER TABLE Packages DROP OutOfDate, DROP FSPath, DROP URLPath, DROP LocationID;
7 DROP TABLE PackageLocations, PackageContents;
8 ALTER TABLE AccountTypes MODIFY AccountType VARCHAR(32) NOT NULL DEFAULT '';
9 ALTER TABLE Users MODIFY Username VARCHAR(32) NOT NULL,
10         MODIFY Email VARCHAR(64) NOT NULL,
11         MODIFY RealName VARCHAR(64) NOT NULL DEFAULT '',
12         MODIFY LangPreference VARCHAR(5) NOT NULL DEFAULT 'en',
13         MODIFY IRCNick VARCHAR(32) NOT NULL DEFAULT '';
14 ALTER TABLE PackageCategories MODIFY Category VARCHAR(32) NOT NULL;
15 ALTER TABLE Packages MODIFY Name VARCHAR(64) NOT NULL,
16         MODIFY Version VARCHAR(32) NOT NULL DEFAULT '',
17         MODIFY Description VARCHAR(255) NOT NULL DEFAULT "An Arch Package",
18         MODIFY URL VARCHAR(255) NOT NULL DEFAULT "https://www.archlinux.org",
19         MODIFY License VARCHAR(40) NOT NULL DEFAULT '';
20 ALTER TABLE PackageSources
21         MODIFY Source VARCHAR(255) NOT NULL DEFAULT "/dev/null";
22 ALTER TABLE TU_VoteInfo
23         MODIFY User VARCHAR(32) collate latin1_general_ci NOT NULL;
24 CREATE TABLE PackageBlacklist (
25         ID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
26         Name VARCHAR(64) NOT NULL,
27         PRIMARY KEY (ID),
28         UNIQUE (Name)
30 ----
32 2. Drop all fulltext indexes from the "Packages" table:
34 Please do this with care. `ALTER TABLE Packages DROP INDEX Name;` will work in
35 most cases but might remove the wrong index if your indexes have been created
36 in a non-standard order (e.g. during some update process). You'd better run
37 `SHOW INDEX FROM Packages;` before to ensure that your setup doesn't use a
38 different naming.
40 3. You will need to update all packages which are stored in the incoming dir as
41 in 1.8.0, source tarballs are no longer extracted automatically and PKGBUILDs
42 are from now on located in the same subdirectories as the tarballs themselves.
43 The following script will do the conversion automatically when being run inside
44 "$INCOMING_DIR":
46 ----
47 #!/bin/bash
49 for pkg in *; do
50         if [ -d "${pkg}" -a ! -f "${pkg}/PKGBUILD" ]; then
51                 pkgbuild_file=$(find -P "${pkg}" -name PKGBUILD)
52                 [ -n "${pkgbuild_file}" ] && \
53                         cp "${pkgbuild_file}" "${pkg}/PKGBUILD"
54         fi
55 done
56 ----
58 4. (optional): 1.8.0 includes a helper utility called "aurblup" that can be
59 used to prevent users from uploading source packages with names identical to
60 packages in predefined binary repos, e.g. the official repositories of your
61 distribution. In order to build and install aurblup, enter the following
62 commands:
64         cd scripts/aurblup/
65         make config.h
66         $EDITOR config.h
67         make install  # as root
69 Add something like "0 * * * * /usr/local/bin/aurblup" to root's crontab to make
70 aurblup update the package blacklist every hour.
72 NOTE: You can run aurblup as non-privileged user as well. Make sure that the
73 user has read-write access to "/var/lib/aurblup/" (or whatever you defined with
74 "ALPM_DBPATH") tho.
76 5. (optional): As of 1.8.0, all MySQL tables should be InnoDB compatible. To
77 convert a table, you can use this statement: `ALTER TABLE $foo ENGINE=InnoDB;`.
78 If you want to stick with MyISAM or another storage engine that doesn't support
79 transactions, you will need to disable the "MYSQL_USE_TRANSACTIONS" setting in
80 "config.h" when setting up aurblup.