diff --git a/Dockerfile b/Dockerfile index 5f7bef6..3e88e96 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /app COPY ./*.csproj /app/ @@ -7,7 +7,7 @@ RUN dotnet restore COPY ./*.cs* /app/ RUN dotnet publish -c Release -o out -FROM mcr.microsoft.com/dotnet/runtime:6.0 AS runtime +FROM mcr.microsoft.com/dotnet/runtime:8.0 AS runtime WORKDIR /app VOLUME [ "/app/sqlite" ] USER 1000 diff --git a/Generator.cs b/Generator.cs index 76cd138..872d1fe 100644 --- a/Generator.cs +++ b/Generator.cs @@ -74,6 +74,9 @@ public void Run() /// private void createSchema(SqliteConnection sqlite) { + sqlite.Execute("CREATE TABLE `schema_version` (`number` smallint unsigned NOT NULL)"); + sqlite.Execute("INSERT INTO `schema_version` (`number`) VALUES (2)"); + sqlite.Execute(@"CREATE TABLE `osu_beatmapsets` ( `beatmapset_id` mediumint unsigned NOT NULL, `submit_date` timestamp NOT NULL DEFAULT NULL, diff --git a/osu-onlinedb-generator.csproj b/osu-onlinedb-generator.csproj index e34fbf3..3c58059 100644 --- a/osu-onlinedb-generator.csproj +++ b/osu-onlinedb-generator.csproj @@ -2,16 +2,16 @@ Exe - net6.0 + net8.0 osu.Server.OnlineDbGenerator - - - - - + + + + +