Skip to content

Commit 0fe4ec8

Browse files
committed
feat: upgrade to net9 and pgsql
1 parent 193114c commit 0fe4ec8

29 files changed

+317
-1612
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"dotnet-ef": {
6-
"version": "8.0.8",
6+
"version": "9.0.1",
77
"commands": [
88
"dotnet-ef"
99
]

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM mcr.microsoft.com/dotnet/runtime:8.0.6 AS base
1+
FROM mcr.microsoft.com/dotnet/runtime:9.0.1 AS base
22
USER $APP_UID
33
WORKDIR /app
44

5-
FROM mcr.microsoft.com/dotnet/sdk:8.0.302 AS build
5+
FROM mcr.microsoft.com/dotnet/sdk:9.0.102 AS build
66

77
ARG BUILD_CONFIGURATION=Release
88
ARG BUILD_NUMBER

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"sdk": {
3-
"version": "8.0.302"
3+
"version": "9.0.102"
44
},
55
"clr": {
6-
"version": "8.0.6"
6+
"version": "9.0.1"
77
}
88
}

swappy-bot/EntityFramework/BotContextFactory.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public BotContext CreateDbContext(string[] args)
2323
var optionsBuilder = new DbContextOptionsBuilder<BotContext>();
2424
var connectionString = configuration.GetConnectionString("Migrations");
2525

26-
optionsBuilder.UseMySql(connectionString, Db.Version);
26+
optionsBuilder
27+
.UseNpgsql(connectionString)
28+
.UseLowerCaseNamingConvention();
2729

2830
return new BotContext(optionsBuilder.Options);
2931
}

swappy-bot/EntityFramework/Db.cs

Lines changed: 0 additions & 10 deletions
This file was deleted.

swappy-bot/Migrations/20240127204038_Initial.Designer.cs

Lines changed: 0 additions & 102 deletions
This file was deleted.

swappy-bot/Migrations/20240127204038_Initial.cs

Lines changed: 0 additions & 85 deletions
This file was deleted.

swappy-bot/Migrations/20240127214133_AddSwapCancelled.Designer.cs

Lines changed: 0 additions & 107 deletions
This file was deleted.

swappy-bot/Migrations/20240127214133_AddSwapCancelled.cs

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)