Workshop - Added indicator for official submissions

Router - Reload previous screen if navigation is cancelled
Profile editor - Disable auto-update when editing workshop profiles
This commit is contained in:
Robert committed 2024-07-20 22:34:41 +02:00
1 parent 3b2d799bfc
commit b00f5ca73a
14 files changed
+127 -42

No files matched your search

@@ -50,6 +50,22 @@ namespace Artemis.Storage.Migrations
type: "TEXT",
nullable: false,
defaultValue: "");
// Enable auto-update on all entries that are not profiles
migrationBuilder.Sql("UPDATE Entries SET AutoUpdate = 1 WHERE EntryType != 2");
// Enable auto-update on all entries of profiles that are fresh imports
migrationBuilder.Sql("""
UPDATE Entries
SET AutoUpdate = 1
WHERE EntryType = 2
AND EXISTS (
SELECT 1
FROM ProfileContainers
WHERE json_extract(ProfileContainers.Profile, '$.Id') = json_extract(Entries.Metadata, '$.ProfileId')
AND json_extract(ProfileContainers.Profile, '$.IsFreshImport') = 1
);
""");
}
/// <inheritdoc />