refactor(data): centralize list seeding in MigrateAndConfigure, add default-value test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-04-20 10:07:12 +02:00
parent 92a6e0642e
commit 9a05907170
4 changed files with 21 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
using ClaudeDo.Data.Models;
using ClaudeDo.Data.Seeding;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage;
@@ -73,5 +74,6 @@ public class ClaudeDoDbContext : DbContext
}
db.Database.Migrate();
DefaultListsSeeder.SeedAsync(db).GetAwaiter().GetResult();
}
}