From 747948b8bb86ed9a46579b0903f4ab2070d3ed5b Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Wed, 19 Jan 2022 16:24:44 +0200 Subject: [PATCH] first sql script - pve version --- .../ProxmoxConnector.Server.Domain.Data.csproj | 6 ++++++ .../Scripts/1.0.0/01.Create table PveVersion.sql | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/server/ProxmoxConnector.Server.Domain.Data/Scripts/1.0.0/01.Create table PveVersion.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 796315c..91cde75 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 @@ -8,4 +8,10 @@ + + + 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 table PveVersion.sql new file mode 100644 index 0000000..cd93763 --- /dev/null +++ b/src/server/ProxmoxConnector.Server.Domain.Data/Scripts/1.0.0/01.Create table PveVersion.sql @@ -0,0 +1,9 @@ +CREATE TABLE "PveVersion" ( + "Id" INTEGER NOT NULL, + "Version" TEXT NOT NULL UNIQUE, + CONSTRAINT "PK_PveVersion" PRIMARY KEY("Id" AUTOINCREMENT) +); + +INSERT INTO PveVersion(Id, Version) +SELECT 1, '6.3' UNION +SELECT 2, '6.4' \ No newline at end of file