first sql script - pve version

master
Tudor Stanciu 2022-01-19 16:24:44 +02:00
parent abd5db530e
commit 747948b8bb
2 changed files with 15 additions and 0 deletions

View File

@ -8,4 +8,10 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="$(EntityFrameworkCoreSqlitePackageVersion)" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="$(EntityFrameworkCoreSqlitePackageVersion)" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Update="Scripts\1.0.0\01.Create table PveVersion.sql">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project> </Project>

View File

@ -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'