les servermodels ne sont plus associés à une source

This commit is contained in:
Emmanuel Garette 2020-09-02 09:04:49 +02:00
parent f371c96ff3
commit 54c895f822
1 changed files with 5 additions and 7 deletions

View File

@ -56,7 +56,6 @@ CREATE TABLE InfraServer(
ServerName VARCHAR(255) NOT NULL UNIQUE, ServerName VARCHAR(255) NOT NULL UNIQUE,
ServerDescription VARCHAR(255) NOT NULL, ServerDescription VARCHAR(255) NOT NULL,
ServermodelName VARCHAR(255) NOT NULL, ServermodelName VARCHAR(255) NOT NULL,
ServermodelSourceName VARCHAR(255) NOT NULL,
ServermodelReleaseDistribution VARCHAR(255) NOT NULL, ServermodelReleaseDistribution VARCHAR(255) NOT NULL,
SiteName VARCHAR(255) NOT NULL, SiteName VARCHAR(255) NOT NULL,
ZonesName VARCHAR(255) [] NOT NULL, ZonesName VARCHAR(255) [] NOT NULL,
@ -74,7 +73,7 @@ CREATE TABLE Release (
ReleaseId SERIAL PRIMARY KEY, ReleaseId SERIAL PRIMARY KEY,
ReleaseName VARCHAR(255) NOT NULL, ReleaseName VARCHAR(255) NOT NULL,
ReleaseSourceName VARCHAR(255) NOT NULL, ReleaseSourceName VARCHAR(255) NOT NULL,
ReleaseDistribution VARCHAR(20) CONSTRAINT releasedistribution_choice CHECK (ReleaseDistribution IN ('last', 'n-1', 'n-2')), ReleaseDistribution VARCHAR(20) NOT NULL,
UNIQUE (ReleaseName, ReleaseSourceName), UNIQUE (ReleaseName, ReleaseSourceName),
UNIQUE (ReleaseDistribution, ReleaseSourceName) UNIQUE (ReleaseDistribution, ReleaseSourceName)
); );
@ -98,13 +97,11 @@ CREATE TABLE Servermodel (
ServermodelDescription VARCHAR(255) NOT NULL, ServermodelDescription VARCHAR(255) NOT NULL,
Osname VARCHAR(255), Osname VARCHAR(255),
Osversion VARCHAR(255), Osversion VARCHAR(255),
ISO VARCHAR(255),
ServermodelParents VARCHAR(255) [] DEFAULT '{}', ServermodelParents VARCHAR(255) [] DEFAULT '{}',
SourceName VARCHAR(255) NOT NULL,
ReleaseName VARCHAR(255) NOT NULL,
ReleaseDistribution VARCHAR(255) NOT NULL, ReleaseDistribution VARCHAR(255) NOT NULL,
ReleaseName VARCHAR(255) NOT NULL,
ServermodelApplicationserviceId INTEGER NOT NULL, ServermodelApplicationserviceId INTEGER NOT NULL,
UNIQUE (ServermodelName, SourceName, ReleaseName) UNIQUE (ServermodelName, ReleaseDistribution)
); );
CREATE INDEX ServermodelApplicationserviceId_index ON Servermodel (ServermodelApplicationserviceId); CREATE INDEX ServermodelApplicationserviceId_index ON Servermodel (ServermodelApplicationserviceId);
@ -113,10 +110,11 @@ CREATE TABLE Applicationservice (
ApplicationserviceId SERIAL PRIMARY KEY, ApplicationserviceId SERIAL PRIMARY KEY,
ApplicationserviceName VARCHAR(255) NOT NULL, ApplicationserviceName VARCHAR(255) NOT NULL,
ApplicationserviceDescription VARCHAR(255) NOT NULL, ApplicationserviceDescription VARCHAR(255) NOT NULL,
ReleaseDistribution VARCHAR(255) NOT NULL,
ReleaseName VARCHAR(255) NOT NULL, ReleaseName VARCHAR(255) NOT NULL,
SourceName VARCHAR(255) NOT NULL, SourceName VARCHAR(255) NOT NULL,
OS JSON, OS JSON,
UNIQUE (ApplicationserviceName, ReleaseName, SourceName) UNIQUE (ApplicationserviceName, ReleaseDistribution)
); );
CREATE TABLE ApplicationserviceDependency ( CREATE TABLE ApplicationserviceDependency (