From 6cd36697b6e4ad2c2c1c76f316f1d5144112bb63 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Thu, 7 Apr 2022 08:36:55 +0300 Subject: [PATCH] AuthenticationType table --- .../ProxmoxConnector.Server.Domain.Data.csproj | 5 ++++- ...e PveVersion.sql => 01.Create PveVersion table.sql} | 0 .../1.0.0/02.Create AuthenticationType table.sql | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) rename src/server/ProxmoxConnector.Server.Domain.Data/Scripts/1.0.0/{01.Create table PveVersion.sql => 01.Create PveVersion table.sql} (100%) create mode 100644 src/server/ProxmoxConnector.Server.Domain.Data/Scripts/1.0.0/02.Create AuthenticationType table.sql 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