using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace NostrStreamer.Migrations
{
///
public partial class MigrateStreamInfo : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ContentWarning",
table: "Users");
migrationBuilder.DropColumn(
name: "Goal",
table: "Users");
migrationBuilder.DropColumn(
name: "Image",
table: "Users");
migrationBuilder.DropColumn(
name: "Summary",
table: "Users");
migrationBuilder.DropColumn(
name: "Tags",
table: "Users");
migrationBuilder.DropColumn(
name: "Title",
table: "Users");
migrationBuilder.DropColumn(
name: "StreamId",
table: "Streams");
migrationBuilder.AddColumn(
name: "ContentWarning",
table: "Streams",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "Goal",
table: "Streams",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "Image",
table: "Streams",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "Summary",
table: "Streams",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "Tags",
table: "Streams",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "Title",
table: "Streams",
type: "text",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ContentWarning",
table: "Streams");
migrationBuilder.DropColumn(
name: "Goal",
table: "Streams");
migrationBuilder.DropColumn(
name: "Image",
table: "Streams");
migrationBuilder.DropColumn(
name: "Summary",
table: "Streams");
migrationBuilder.DropColumn(
name: "Tags",
table: "Streams");
migrationBuilder.DropColumn(
name: "Title",
table: "Streams");
migrationBuilder.AddColumn(
name: "ContentWarning",
table: "Users",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "Goal",
table: "Users",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "Image",
table: "Users",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "Summary",
table: "Users",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "Tags",
table: "Users",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "Title",
table: "Users",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "StreamId",
table: "Streams",
type: "text",
nullable: false,
defaultValue: "");
}
}
}