Skip to content

Commit

Permalink
Merge pull request #8 from bdach/updates
Browse files Browse the repository at this point in the history
General updates
  • Loading branch information
peppy authored Aug 21, 2024
2 parents af36caa + f025b75 commit eadfdb7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public void Run()
/// <param name="sqlite"></param>
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,
Expand Down
12 changes: 6 additions & 6 deletions osu-onlinedb-generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>osu.Server.OnlineDbGenerator</RootNamespace>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.S3" Version="3.7.9.37" />
<PackageReference Include="Dapper" Version="2.0.123" />
<PackageReference Include="Microsoft.Data.SQLite" Version="6.0.8" />
<PackageReference Include="MySqlConnector" Version="2.1.11" />
<PackageReference Include="sharpcompress" Version="0.32.2" />
<PackageReference Include="AWSSDK.S3" Version="3.7.402" />
<PackageReference Include="Dapper" Version="2.1.35" />
<PackageReference Include="Microsoft.Data.SQLite" Version="8.0.8" />
<PackageReference Include="MySqlConnector" Version="2.3.7" />
<PackageReference Include="sharpcompress" Version="0.37.2" />
</ItemGroup>

</Project>

0 comments on commit eadfdb7

Please sign in to comment.