Small issue for fresh installs (#2905)

This commit is contained in:
Joe Milazzo 2024-04-22 13:53:14 -05:00 committed by GitHub
parent 52121fbb76
commit b9a343602e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,8 @@ public static class MigrateCollectionTagToUserCollections
{ {
public static async Task Migrate(DataContext dataContext, IUnitOfWork unitOfWork, ILogger<Program> logger) public static async Task Migrate(DataContext dataContext, IUnitOfWork unitOfWork, ILogger<Program> logger)
{ {
if (await dataContext.ManualMigrationHistory.AnyAsync(m => m.Name == "MigrateCollectionTagToUserCollections")) if (await dataContext.ManualMigrationHistory.AnyAsync(m => m.Name == "MigrateCollectionTagToUserCollections") ||
!await dataContext.AppUser.AnyAsync())
{ {
return; return;
} }

View File

@ -7,7 +7,7 @@
"name": "GPL-3.0", "name": "GPL-3.0",
"url": "https://github.com/Kareadita/Kavita/blob/develop/LICENSE" "url": "https://github.com/Kareadita/Kavita/blob/develop/LICENSE"
}, },
"version": "0.8.0.7" "version": "0.8.0.9"
}, },
"servers": [ "servers": [
{ {