Add Distribution attributute to releases

This commit is contained in:
Benjamin Bohard 2019-12-16 15:49:20 +01:00
parent b4c48ebc10
commit 91aac5399a
1 changed files with 2 additions and 0 deletions

View File

@ -15,10 +15,12 @@ CREATE TABLE Release (
ReleaseId SERIAL PRIMARY KEY, ReleaseId SERIAL PRIMARY KEY,
ReleaseName VARCHAR(255) NOT NULL, ReleaseName VARCHAR(255) NOT NULL,
ReleaseSourceId INTEGER NOT NULL, ReleaseSourceId INTEGER NOT NULL,
ReleaseDistribution VARCHAR(20) CONSTRAINT releasedistribution_choice CHECK (ReleaseDistribution IN ('dev', 'stable', 'maintained', 'deprecation-warning', 'deprecated')),
UNIQUE (ReleaseName, ReleaseSourceId), UNIQUE (ReleaseName, ReleaseSourceId),
FOREIGN KEY (ReleaseSourceId) REFERENCES Source(SourceId) FOREIGN KEY (ReleaseSourceId) REFERENCES Source(SourceId)
); );
-- Création de la table Servermodel -- Création de la table Servermodel
CREATE TABLE Servermodel ( CREATE TABLE Servermodel (
ServermodelId SERIAL PRIMARY KEY, ServermodelId SERIAL PRIMARY KEY,