53 lines
2.0 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace EntityFrameworkCore.Data.Migrations
{
/// <inheritdoc />
public partial class SeededLeagues : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "Leagues",
columns: new[] { "Id", "CreatedBy", "CreatedDate", "ModifiedBy", "ModifiedDate", "Name" },
values: new object[,]
{
{ 1, null, new DateTime(2025, 4, 6, 17, 7, 27, 33, DateTimeKind.Unspecified), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Local League" },
{ 2, null, new DateTime(2025, 4, 6, 17, 7, 27, 33, DateTimeKind.Unspecified), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "National League" },
{ 3, null, new DateTime(2025, 4, 6, 17, 7, 27, 33, DateTimeKind.Unspecified), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Geosphere" },
{ 4, null, new DateTime(2025, 4, 6, 17, 7, 27, 33, DateTimeKind.Unspecified), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "Cyber war" }
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Leagues",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Leagues",
keyColumn: "Id",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Leagues",
keyColumn: "Id",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Leagues",
keyColumn: "Id",
keyValue: 4);
}
}
}