59 lines
1.7 KiB
C#
59 lines
1.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Backend.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddSeasonShowStreamUrl : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ShowStreamUrl",
|
|
table: "Seasons",
|
|
type: "character varying(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "Seasons",
|
|
keyColumn: "Id",
|
|
keyValue: 1,
|
|
column: "ShowStreamUrl",
|
|
value: "https://twitch.tv/jayuhime");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "Seasons",
|
|
keyColumn: "Id",
|
|
keyValue: 2,
|
|
column: "ShowStreamUrl",
|
|
value: "https://twitch.tv/jayuhime");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "Seasons",
|
|
keyColumn: "Id",
|
|
keyValue: 3,
|
|
column: "ShowStreamUrl",
|
|
value: "https://youtube.com/c/Jayuhime");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "Seasons",
|
|
keyColumn: "Id",
|
|
keyValue: 4,
|
|
column: "ShowStreamUrl",
|
|
value: "https://twitch.tv/jayuhime");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ShowStreamUrl",
|
|
table: "Seasons");
|
|
}
|
|
}
|
|
}
|