Change where the MigrationTable are to be created. Improve the update-databases.sh script
This commit is contained in:
@@ -7,9 +7,11 @@ public class MessagingDbContext(
|
||||
DbContextOptions<MessagingDbContext> options)
|
||||
: DbContext(options)
|
||||
{
|
||||
public const string SchemaName = "Messaging";
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.HasDefaultSchema("Messaging");
|
||||
modelBuilder.HasDefaultSchema(SchemaName);
|
||||
|
||||
modelBuilder
|
||||
.Entity<Message>()
|
||||
|
||||
Reference in New Issue
Block a user