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

@@ -1,4 +1,5 @@
using ClaudeDo.Data;
using ClaudeDo.Data.Seeding;
using ClaudeDo.Installer.Core;
using Microsoft.EntityFrameworkCore;
@@ -20,6 +21,7 @@ public sealed class InitDatabaseStep : IInstallStep
.Options;
using var context = new ClaudeDoDbContext(options);
ClaudeDoDbContext.MigrateAndConfigure(context);
DefaultListsSeeder.SeedAsync(context).GetAwaiter().GetResult();
progress.Report("Schema applied successfully");
return Task.FromResult(StepResult.Ok());