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 11using Microsoft . EntityFrameworkCore ;
22
3+ using MySql . EntityFrameworkCore . Extensions ;
4+
35namespace Nullinside . Api . Model . Ddl ;
46
57/// <summary>
@@ -39,6 +41,8 @@ public class TwitchBan : ITableModel {
3941 public void OnModelCreating ( ModelBuilder modelBuilder ) {
4042 modelBuilder . Entity < TwitchBan > ( entity => {
4143 entity . HasKey ( e => e . Id ) ;
44+ entity . Property ( e => e . Id )
45+ . UseMySQLAutoIncrementColumn ( "int" ) ;
4246 entity . Property ( e => e . ChannelId )
4347 . HasMaxLength ( 255 ) ;
4448 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)
1616 {
1717#pragma warning disable 612 , 618
1818 modelBuilder
19- . HasAnnotation ( "ProductVersion" , "8.0.11 " )
19+ . HasAnnotation ( "ProductVersion" , "8.0.13 " )
2020 . HasAnnotation ( "Relational:MaxIdentifierLength" , 64 ) ;
2121
2222 modelBuilder . Entity ( "Nullinside.Api.Model.Ddl.DockerDeployments" , b =>
You can’t perform that action at this time.
0 commit comments