37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Backend.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddNominationLinkBlacklist : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "NominationLinkBlacklistJson",
|
|
table: "SiteSettings",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "[]");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "SiteSettings",
|
|
keyColumn: "Id",
|
|
keyValue: 1,
|
|
column: "NominationLinkBlacklistJson",
|
|
value: "[{\"Url\":\"https://kick.com/\"},{\"Url\":\"https://www.twitch.tv/\"},{\"Url\":\"https://www.youtube.com/\"}]");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "NominationLinkBlacklistJson",
|
|
table: "SiteSettings");
|
|
}
|
|
}
|
|
}
|