Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Removed the SeriesMetadata migration since users have updated to v0.4.1. Any other users will require a scan to get the SeriesMetadata generated. (#275)

Joseph Milazzo4606b5460371
diff --git a/API/Data/Seed.cs b/API/Data/Seed.cs
index 2dfeb1c0a..ad0c09236 100644
--- a/API/Data/Seed.cs
+++ b/API/Data/Seed.cs
@@ -7,7 +7,6 @@ using API.Entities;
using API.Entities.Enums;
using API.Services;
using Microsoft.AspNetCore.Identity;
-using Microsoft.EntityFrameworkCore;
namespace API.Data
{
@@ -56,21 +55,5 @@ namespace API.Data
await context.SaveChangesAsync();
}
-
- public static async Task SeedSeriesMetadata(DataContext context)
- {
- await context.Database.EnsureCreatedAsync();
-
- context.Database.EnsureCreated();
- var series = await context.Series
- .Include(s => s.Metadata).ToListAsync();
-
- foreach (var s in series)
- {
- s.Metadata ??= new SeriesMetadata();
- }
-
- await context.SaveChangesAsync();
- }
}
}
\ No newline at end of file
diff --git a/API/Program.cs b/API/Program.cs
index b2612efbe..da444974e 100644
--- a/API/Program.cs
+++ b/API/Program.cs
@@ -61,8 +61,6 @@ namespace API
await context.Database.MigrateAsync();
await Seed.SeedRoles(roleManager);
await Seed.SeedSettings(context);
- // TODO: Remove this in v0.4.2
- await Seed.SeedSeriesMetadata(context);
}
catch (Exception ex)
{