40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace FinlyticEngine.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddUniverseSourceToEvaluationSnapshot : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "UniverseEnteredAtUtc",
|
|
table: "engine_evaluation_snapshots",
|
|
type: "timestamp with time zone",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "UniverseSource",
|
|
table: "engine_evaluation_snapshots",
|
|
type: "integer",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "UniverseEnteredAtUtc",
|
|
table: "engine_evaluation_snapshots");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UniverseSource",
|
|
table: "engine_evaluation_snapshots");
|
|
}
|
|
}
|
|
}
|