les servermodels ne sont plus associés à une source
This commit is contained in:
parent
f371c96ff3
commit
54c895f822
@ -56,7 +56,6 @@ CREATE TABLE InfraServer(
|
||||
ServerName VARCHAR(255) NOT NULL UNIQUE,
|
||||
ServerDescription VARCHAR(255) NOT NULL,
|
||||
ServermodelName VARCHAR(255) NOT NULL,
|
||||
ServermodelSourceName VARCHAR(255) NOT NULL,
|
||||
ServermodelReleaseDistribution VARCHAR(255) NOT NULL,
|
||||
SiteName VARCHAR(255) NOT NULL,
|
||||
ZonesName VARCHAR(255) [] NOT NULL,
|
||||
@ -74,7 +73,7 @@ CREATE TABLE Release (
|
||||
ReleaseId SERIAL PRIMARY KEY,
|
||||
ReleaseName 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 (ReleaseDistribution, ReleaseSourceName)
|
||||
);
|
||||
@ -98,13 +97,11 @@ CREATE TABLE Servermodel (
|
||||
ServermodelDescription VARCHAR(255) NOT NULL,
|
||||
Osname VARCHAR(255),
|
||||
Osversion VARCHAR(255),
|
||||
ISO VARCHAR(255),
|
||||
ServermodelParents VARCHAR(255) [] DEFAULT '{}',
|
||||
SourceName VARCHAR(255) NOT NULL,
|
||||
ReleaseName VARCHAR(255) NOT NULL,
|
||||
ReleaseDistribution VARCHAR(255) NOT NULL,
|
||||
ReleaseName VARCHAR(255) NOT NULL,
|
||||
ServermodelApplicationserviceId INTEGER NOT NULL,
|
||||
UNIQUE (ServermodelName, SourceName, ReleaseName)
|
||||
UNIQUE (ServermodelName, ReleaseDistribution)
|
||||
);
|
||||
CREATE INDEX ServermodelApplicationserviceId_index ON Servermodel (ServermodelApplicationserviceId);
|
||||
|
||||
@ -113,10 +110,11 @@ CREATE TABLE Applicationservice (
|
||||
ApplicationserviceId SERIAL PRIMARY KEY,
|
||||
ApplicationserviceName VARCHAR(255) NOT NULL,
|
||||
ApplicationserviceDescription VARCHAR(255) NOT NULL,
|
||||
ReleaseDistribution VARCHAR(255) NOT NULL,
|
||||
ReleaseName VARCHAR(255) NOT NULL,
|
||||
SourceName VARCHAR(255) NOT NULL,
|
||||
OS JSON,
|
||||
UNIQUE (ApplicationserviceName, ReleaseName, SourceName)
|
||||
UNIQUE (ApplicationserviceName, ReleaseDistribution)
|
||||
);
|
||||
|
||||
CREATE TABLE ApplicationserviceDependency (
|
||||
|
Loading…
Reference in New Issue
Block a user