File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
using Microsoft . EntityFrameworkCore ;
2
2
3
+ using MySql . EntityFrameworkCore . Extensions ;
4
+
3
5
namespace Nullinside . Api . Model . Ddl ;
4
6
5
7
/// <summary>
@@ -39,6 +41,8 @@ public class TwitchBan : ITableModel {
39
41
public void OnModelCreating ( ModelBuilder modelBuilder ) {
40
42
modelBuilder . Entity < TwitchBan > ( entity => {
41
43
entity . HasKey ( e => e . Id ) ;
44
+ entity . Property ( e => e . Id )
45
+ . UseMySQLAutoIncrementColumn ( "int" ) ;
42
46
entity . Property ( e => e . ChannelId )
43
47
. HasMaxLength ( 255 ) ;
44
48
entity . Property ( e => e . BannedUserTwitchId )
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
16
16
{
17
17
#pragma warning disable 612 , 618
18
18
modelBuilder
19
- . HasAnnotation ( "ProductVersion" , "8.0.11 " )
19
+ . HasAnnotation ( "ProductVersion" , "8.0.13 " )
20
20
. HasAnnotation ( "Relational:MaxIdentifierLength" , 64 ) ;
21
21
22
22
modelBuilder . Entity ( "Nullinside.Api.Model.Ddl.DockerDeployments" , b =>
You can’t perform that action at this time.
0 commit comments