Refactor app architecture and clean local artifacts
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user