mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
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:
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 />
|
||||
|
||||
Reference in new issue
Block a user