mirror of
https://github.com/claunia/marechai.git
synced 2026-07-08 17:57:08 +00:00
Pull age ratings, franchise, involved companies, screenshots, summary, videos, releases and similar games into matched Software entries via a new enrich-games command, following the existing Mirror/Match/Enrich pipeline conventions.
52 lines
1.5 KiB
C#
52 lines
1.5 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Marechai.Database.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddIgdbGameEnrichmentTracking : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "EnrichedOn",
|
|
table: "IgdbGames",
|
|
type: "datetime(6)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "EnrichmentApplied",
|
|
table: "IgdbGames",
|
|
type: "bit(1)",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ScreenshotImageIdsJson",
|
|
table: "IgdbGames",
|
|
type: "text",
|
|
nullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "EnrichedOn",
|
|
table: "IgdbGames");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EnrichmentApplied",
|
|
table: "IgdbGames");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ScreenshotImageIdsJson",
|
|
table: "IgdbGames");
|
|
}
|
|
}
|
|
}
|