mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Workshop - Added indicator for official workshop entries
This commit is contained in:
1 parent
b00f5ca73a
commit
a45d98c171
8 files changed
+45
-16
No files matched your search
@@ -14,6 +14,7 @@ public class EntryEntity
|
||||
public int EntryType { get; set; }
|
||||
|
||||
public string Author { get; set; } = string.Empty;
|
||||
public bool IsOfficial { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string Summary { get; set; } = string.Empty;
|
||||
public long Downloads { get; set; }
|
||||
|
||||
+5
-2
@@ -11,8 +11,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace Artemis.Storage.Migrations
|
||||
{
|
||||
[DbContext(typeof(ArtemisDbContext))]
|
||||
[Migration("20240706131336_ExpandInstalledEntry")]
|
||||
partial class ExpandInstalledEntry
|
||||
[Migration("20240722084220_AutoUpdating")]
|
||||
partial class AutoUpdating
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -264,6 +264,9 @@ namespace Artemis.Storage.Migrations
|
||||
b.Property<DateTimeOffset>("InstalledAt")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("IsOfficial")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<long?>("LatestReleaseId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
+13
-2
@@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
namespace Artemis.Storage.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class ExpandInstalledEntry : Migration
|
||||
public partial class AutoUpdating : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
@@ -38,6 +38,13 @@ namespace Artemis.Storage.Migrations
|
||||
nullable: false,
|
||||
defaultValue: 0L);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsOfficial",
|
||||
table: "Entries",
|
||||
type: "INTEGER",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<long>(
|
||||
name: "LatestReleaseId",
|
||||
table: "Entries",
|
||||
@@ -50,7 +57,7 @@ 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");
|
||||
|
||||
@@ -87,6 +94,10 @@ namespace Artemis.Storage.Migrations
|
||||
name: "Downloads",
|
||||
table: "Entries");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsOfficial",
|
||||
table: "Entries");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LatestReleaseId",
|
||||
table: "Entries");
|
||||
@@ -261,6 +261,9 @@ namespace Artemis.Storage.Migrations
|
||||
b.Property<DateTimeOffset>("InstalledAt")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("IsOfficial")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<long?>("LatestReleaseId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
|
||||
Reference in new issue
Block a user