feat(data): seed default Lists (My Day, Important, Planned)

This commit is contained in:
mika kuns
2026-04-20 10:02:07 +02:00
parent 928dde1358
commit bd8a4d0565
4 changed files with 72 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ using Avalonia;
using ClaudeDo.Data;
using ClaudeDo.Data.Git;
using ClaudeDo.Data.Repositories;
using ClaudeDo.Data.Seeding;
using ClaudeDo.Ui;
using ClaudeDo.Ui.Services;
using ClaudeDo.Ui.ViewModels;
@@ -28,8 +29,9 @@ sealed class Program
using (var scope = services.CreateScope())
{
ClaudeDoDbContext.MigrateAndConfigure(
scope.ServiceProvider.GetRequiredService<ClaudeDoDbContext>());
var db = scope.ServiceProvider.GetRequiredService<ClaudeDoDbContext>();
ClaudeDoDbContext.MigrateAndConfigure(db);
DefaultListsSeeder.SeedAsync(db).GetAwaiter().GetResult();
}
try