diff --git a/.gitignore b/.gitignore index 078b6108c..bb2edbbd2 100644 --- a/.gitignore +++ b/.gitignore @@ -526,8 +526,10 @@ API/config/stats/* API/config/stats/app_stats.json API/config/pre-metadata/ API/config/post-metadata/ +API/config/relations-imported.csv +API/config/relations.csv API.Tests/TestResults/ UI/Web/.vscode/settings.json /API.Tests/Services/Test Data/ArchiveService/CoverImages/output/* UI/Web/.angular/ -BenchmarkDotNet.Artifacts \ No newline at end of file +BenchmarkDotNet.Artifacts diff --git a/API/Program.cs b/API/Program.cs index 9f69cdf3c..01847faaa 100644 --- a/API/Program.cs +++ b/API/Program.cs @@ -82,7 +82,14 @@ public class Program } // This must run before the migration - await MigrateSeriesRelationsExport.Migrate(context, logger); + try + { + await MigrateSeriesRelationsExport.Migrate(context, logger); + } + catch (Exception ex) + { + // If fresh install, could fail and we should just carry on as it's not applicable + } await context.Database.MigrateAsync(); @@ -90,14 +97,6 @@ public class Program await Seed.SeedSettings(context, directoryService); await Seed.SeedThemes(context); await Seed.SeedUserApiKeys(context); - - // NOTE: This check is from v0.4.8 (Nov 04, 2021). We can likely remove this - var isDocker = new OsInfo(Array.Empty()).IsDocker; - if (isDocker && new FileInfo("data/appsettings.json").Exists) - { - logger.LogCritical("WARNING! Mount point is incorrect, nothing here will persist. Please change your container mount from /kavita/data to /kavita/config"); - return; - } } catch (Exception ex) { diff --git a/API/config/relations-imported.csv b/API/config/relations-imported.csv deleted file mode 100644 index 608421b32..000000000 --- a/API/config/relations-imported.csv +++ /dev/null @@ -1,10 +0,0 @@ -SeriesName,SeriesId,TargetSeriesName,TargetId,Relationship -Kaguya-sama - Love Is War,308,Kaguya-sama - Love Is War - Digital Colored Comics,307,AlternativeVersion -Kaguya-sama - Love Is War,308,Kaguya Wants To Be Confessed To Official Doujin,306,SpinOff -Konosuba,341,Konosuba - An Explosion on This Wonderful World!,342,SideStory -Konosuba,341,Kono Subarashii Sekai ni Nichijou wo!,337,SideStory -Accel World,1739,Accel World,887,Edition -24 Hours in Ancient Athens,1748,Kono Subarashii Sekai ni Nichijou wo!,337,Adaptation -24 Hours in Ancient Athens,1748,Accel World,887,Adaptation -Subete no Jidai o Tsuujite no Satsujinjutsu,1877,Accel World,887,Adaptation -KonoSuba,2032,Konosuba,341,Adaptation diff --git a/UI/Web/package-lock.json b/UI/Web/package-lock.json index b5a4c61b7..96d2c455d 100644 --- a/UI/Web/package-lock.json +++ b/UI/Web/package-lock.json @@ -5089,9 +5089,9 @@ }, "dependencies": { "loader-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.3.tgz", - "integrity": "sha512-THWqIsn8QRnvLl0shHYVBN9syumU8pYWEHPTmkiVGd+7K5eFNVSY6AJhRvgGF70gg1Dz+l/k8WicvFCxdEs60A==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", "requires": { "big.js": "^5.2.2", "emojis-list": "^3.0.0", @@ -6746,9 +6746,9 @@ }, "dependencies": { "loader-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.3.tgz", - "integrity": "sha512-THWqIsn8QRnvLl0shHYVBN9syumU8pYWEHPTmkiVGd+7K5eFNVSY6AJhRvgGF70gg1Dz+l/k8WicvFCxdEs60A==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", "requires": { "big.js": "^5.2.2", "emojis-list": "^3.0.0", @@ -7115,9 +7115,9 @@ }, "dependencies": { "loader-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.3.tgz", - "integrity": "sha512-THWqIsn8QRnvLl0shHYVBN9syumU8pYWEHPTmkiVGd+7K5eFNVSY6AJhRvgGF70gg1Dz+l/k8WicvFCxdEs60A==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", "dev": true, "requires": { "big.js": "^5.2.2", @@ -14660,9 +14660,9 @@ }, "dependencies": { "loader-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.3.tgz", - "integrity": "sha512-THWqIsn8QRnvLl0shHYVBN9syumU8pYWEHPTmkiVGd+7K5eFNVSY6AJhRvgGF70gg1Dz+l/k8WicvFCxdEs60A==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", "requires": { "big.js": "^5.2.2", "emojis-list": "^3.0.0",