Change where the MigrationTable are to be created. Improve the update-databases.sh script
This commit is contained in:
@@ -6,10 +6,12 @@ public class ContentDbContext(
|
||||
DbContextOptions<ContentDbContext> options)
|
||||
: DbContext(options)
|
||||
{
|
||||
public const string SchemaName = "Content";
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.HasDefaultSchema("Content");
|
||||
|
||||
|
||||
modelBuilder
|
||||
.Entity<Content>()
|
||||
.Property(c => c.CreatedAt)
|
||||
|
||||
Reference in New Issue
Block a user