Fix new and calc flag for music
Add column to music.db3 Minor fix in Program.cs
This commit is contained in:
parent
7edcd07723
commit
0896e92598
@ -21,8 +21,6 @@ public class ReadMusicQueryHandler : RequestHandlerBase<ReadMusicQuery, string>
|
|||||||
{
|
{
|
||||||
var dto = unlock.MusicToDto();
|
var dto = unlock.MusicToDto();
|
||||||
dto.Id = i;
|
dto.Id = i;
|
||||||
dto.CalcFlag = dto.NewFlag;
|
|
||||||
dto.NewFlag = 0;
|
|
||||||
return dto;
|
return dto;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -15,4 +15,6 @@ public partial class MusicUnlock
|
|||||||
public bool NewFlag { get; set; }
|
public bool NewFlag { get; set; }
|
||||||
|
|
||||||
public bool UseFlag { get; set; }
|
public bool UseFlag { get; set; }
|
||||||
|
|
||||||
|
public bool CalcFlag { get; set; }
|
||||||
}
|
}
|
||||||
|
@ -298,7 +298,7 @@ namespace Infrastructure.Migrations
|
|||||||
|
|
||||||
b.HasKey("MatchId");
|
b.HasKey("MatchId");
|
||||||
|
|
||||||
b.ToTable("OnlineMatches");
|
b.ToTable("OnlineMatches", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Domain.Entities.OnlineMatchEntry", b =>
|
modelBuilder.Entity("Domain.Entities.OnlineMatchEntry", b =>
|
||||||
@ -368,7 +368,7 @@ namespace Infrastructure.Migrations
|
|||||||
|
|
||||||
b.HasKey("MatchId", "EntryId");
|
b.HasKey("MatchId", "EntryId");
|
||||||
|
|
||||||
b.ToTable("OnlineMatchEntries");
|
b.ToTable("OnlineMatchEntries", (string)null);
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Domain.Entities.PlayNumRank", b =>
|
modelBuilder.Entity("Domain.Entities.PlayNumRank", b =>
|
||||||
|
@ -73,6 +73,7 @@ public partial class MusicDbContext : DbContext, IMusicDbContext
|
|||||||
entity.Property(e => e.EndDate).HasColumnName("end_date");
|
entity.Property(e => e.EndDate).HasColumnName("end_date");
|
||||||
entity.Property(e => e.NewFlag).HasColumnName("new_flag");
|
entity.Property(e => e.NewFlag).HasColumnName("new_flag");
|
||||||
entity.Property(e => e.UseFlag).HasColumnName("use_flag");
|
entity.Property(e => e.UseFlag).HasColumnName("use_flag");
|
||||||
|
entity.Property(e => e.CalcFlag).HasColumnName("calc_flag");
|
||||||
});
|
});
|
||||||
|
|
||||||
OnModelCreatingPartial(modelBuilder);
|
OnModelCreatingPartial(modelBuilder);
|
||||||
|
@ -2,13 +2,13 @@
|
|||||||
"Kestrel": {
|
"Kestrel": {
|
||||||
"Endpoints": {
|
"Endpoints": {
|
||||||
"Http": {
|
"Http": {
|
||||||
"Url": "http://0.0.0.0:80"
|
"Url": "http://*:80"
|
||||||
},
|
},
|
||||||
"Https": {
|
"Https": {
|
||||||
"Url": "https://0.0.0.0:443"
|
"Url": "https://*:443"
|
||||||
},
|
},
|
||||||
"Test": {
|
"Test": {
|
||||||
"Url": "http://0.0.0.0:5107"
|
"Url": "http://*:5107"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -143,7 +143,7 @@ try
|
|||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex) when (ex.GetType().Name is not "HostAbortedException")
|
||||||
{
|
{
|
||||||
Log.Fatal(ex, "Unhandled exception in startup");
|
Log.Fatal(ex, "Unhandled exception in startup");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user