mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
We don't need this anymore since all packages managed here are well...managed here. Rip out all of the places we were using this field, many of which depended on the magic value '2' anyway. On the display side of things, we had a column that was always showing 'unsupported' that is now gone, and you can no longer sort by this column. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
87 lines
2.2 KiB
Text
87 lines
2.2 KiB
Text
Upgrading
|
|
=========
|
|
|
|
From 1.7.0 to 1.8.0
|
|
-------------------
|
|
|
|
1. Run the following MySQL statements:
|
|
|
|
----
|
|
ALTER TABLE Packages ADD OutOfDateTS BIGINT UNSIGNED NULL DEFAULT NULL;
|
|
UPDATE Packages SET OutOfDateTS = UNIX_TIMESTAMP() WHERE OutOfDate = 1;
|
|
ALTER TABLE Packages DROP OutOfDate, DROP URLPath, DROP LocationID;
|
|
DROP TABLE PackageLocations;
|
|
----
|
|
|
|
2. You will need to update all packages which are stored in the incoming dir as
|
|
in 1.8.0, source tarballs are no longer extracted automatically and PKGBUILDs
|
|
are from now on located in the same subdirectories as the tarballs themselves.
|
|
The following script will do the conversion automatically when being run inside
|
|
"$INCOMING_DIR":
|
|
|
|
----
|
|
#!/bin/bash
|
|
|
|
for pkg in *; do
|
|
if [ -d "${pkg}" -a ! -f "${pkg}/PKGBUILD" ]; then
|
|
pkgbuild_file=$(find -P "${pkg}" -name PKGBUILD)
|
|
[ -n "${pkgbuild_file}" ] && \
|
|
cp "${pkgbuild_file}" "${pkg}/PKGBUILD"
|
|
fi
|
|
done
|
|
----
|
|
|
|
From 1.6.0 to 1.7.0
|
|
-------------------
|
|
ALTER TABLE Users ADD Salt CHAR(32) NOT NULL DEFAULT '';
|
|
ALTER TABLE Users ADD ResetKey CHAR(32) NOT NULL DEFAULT '';
|
|
ALTER TABLE Users MODIFY LangPreference CHAR(5) NOT NULL DEFAULT 'en';
|
|
|
|
|
|
From 1.5.2 to 1.5.3
|
|
-------------------
|
|
1. Ensure this appears in config.inc:
|
|
define("DEFAULT_LANG", "en");
|
|
|
|
|
|
From 1.5.1 to 1.5.2
|
|
-------------------
|
|
1. Ensure Pear and File/Find.php are in the path. See web/README.txt.
|
|
|
|
2. Update your running copy of support/scripts/newpackage-notify.
|
|
|
|
3. Run this in web/lib:
|
|
<?php
|
|
|
|
# Run the script from within lib
|
|
include('config.inc');
|
|
include('aur.inc');
|
|
|
|
$query = "UPDATE Packages SET " .
|
|
"FSPath = CONCAT('" . INCOMING_DIR . "', Name, '/', Name,
|
|
'.tar.gz'), " .
|
|
"URLPath = CONCAT('" . URL_DIR . "', Name, '/', Name, '.tar.gz') " .
|
|
"WHERE DummyPKG = 0 AND LocationID = 2;";
|
|
|
|
$dbh = db_connect();
|
|
db_query($query, $dbh);
|
|
|
|
$query = "ALTER TABLE Packages DROP COLUMN AURMaintainerUID;";
|
|
db_query($query, $dbh);
|
|
|
|
|
|
1.3.0
|
|
-----
|
|
ALTER TABLE PackageDepends ADD COLUMN DepCondition VARCHAR(20) AFTER DepPkgID;
|
|
ALTER TABLE Packages ADD License CHAR(40) NOT NULL DEFAULT '';
|
|
|
|
|
|
1.2.10
|
|
------
|
|
ALTER TABLE Packages MODIFY Description CHAR(255) NOT NULL DEFAULT "An Arch Package";
|
|
|
|
|
|
longerpkgname
|
|
-------------
|
|
ALTER TABLE Packages MODIFY Name CHAR(64) NOT NULL;
|
|
|