mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Store dependency descriptions in a separate column
Split optional dependency descriptions from dependency names before storing them in the database and use a separate column to store the descriptions. This allows us to simplify and optimize the SQL queries in pkg_dependencies() as well as pkg_required(). Suggested-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
15501972bc
commit
44858e0618
5 changed files with 28 additions and 35 deletions
|
@ -187,6 +187,7 @@ CREATE TABLE PackageDepends (
|
|||
PackageID INTEGER UNSIGNED NOT NULL,
|
||||
DepTypeID TINYINT UNSIGNED NOT NULL,
|
||||
DepName VARCHAR(255) NOT NULL,
|
||||
DepDesc VARCHAR(255) NULL DEFAULT NULL,
|
||||
DepCondition VARCHAR(255),
|
||||
DepArch VARCHAR(255) NULL DEFAULT NULL,
|
||||
FOREIGN KEY (PackageID) REFERENCES Packages(ID) ON DELETE CASCADE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue