29 lines
771 B
C#
29 lines
771 B
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace Newsbot.Collector.Database.Migrations
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
public partial class DiscordNotificationOwnerAdded : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "UserId",
|
|||
|
table: "DiscordNotification",
|
|||
|
type: "text",
|
|||
|
nullable: true);
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "UserId",
|
|||
|
table: "DiscordNotification");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|