diff --git a/src/server/ProxmoxConnector.Server.Domain.Data/ProxmoxConnector.Server.Domain.Data.csproj b/src/server/ProxmoxConnector.Server.Domain.Data/ProxmoxConnector.Server.Domain.Data.csproj index 91cde75..90c5811 100644 --- a/src/server/ProxmoxConnector.Server.Domain.Data/ProxmoxConnector.Server.Domain.Data.csproj +++ b/src/server/ProxmoxConnector.Server.Domain.Data/ProxmoxConnector.Server.Domain.Data.csproj @@ -9,7 +9,10 @@ - + + PreserveNewest + + PreserveNewest diff --git a/src/server/ProxmoxConnector.Server.Domain.Data/Scripts/1.0.0/01.Create table PveVersion.sql b/src/server/ProxmoxConnector.Server.Domain.Data/Scripts/1.0.0/01.Create PveVersion table.sql similarity index 100% rename from src/server/ProxmoxConnector.Server.Domain.Data/Scripts/1.0.0/01.Create table PveVersion.sql rename to src/server/ProxmoxConnector.Server.Domain.Data/Scripts/1.0.0/01.Create PveVersion table.sql diff --git a/src/server/ProxmoxConnector.Server.Domain.Data/Scripts/1.0.0/02.Create AuthenticationType table.sql b/src/server/ProxmoxConnector.Server.Domain.Data/Scripts/1.0.0/02.Create AuthenticationType table.sql new file mode 100644 index 0000000..3ebffe8 --- /dev/null +++ b/src/server/ProxmoxConnector.Server.Domain.Data/Scripts/1.0.0/02.Create AuthenticationType table.sql @@ -0,0 +1,10 @@ +CREATE TABLE AuthenticationType ( + "Id" INTEGER NOT NULL, + "Code" TEXT NOT NULL UNIQUE, + "Name" TEXT NOT NULL, + CONSTRAINT "PK_AuthenticationType" PRIMARY KEY("Id" AUTOINCREMENT) +); + +INSERT INTO AuthenticationType(Id, Code, Name) +SELECT 1, 'CREDENTIALS', 'Credentials' UNION +SELECT 2, 'API_TOKEN', 'Api token' \ No newline at end of file