feat(data): seed default Lists (My Day, Important, Planned)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user