using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DysonNetwork.Sphere.Migrations
{
///
public partial class BetterLocalActor : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "is_local_actor",
table: "fediverse_relationships");
migrationBuilder.DropColumn(
name: "local_account_id",
table: "fediverse_relationships");
migrationBuilder.DropColumn(
name: "local_publisher_id",
table: "fediverse_relationships");
migrationBuilder.AddColumn(
name: "publisher_id",
table: "fediverse_actors",
type: "uuid",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "publisher_id",
table: "fediverse_actors");
migrationBuilder.AddColumn(
name: "is_local_actor",
table: "fediverse_relationships",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "local_account_id",
table: "fediverse_relationships",
type: "uuid",
nullable: true);
migrationBuilder.AddColumn(
name: "local_publisher_id",
table: "fediverse_relationships",
type: "uuid",
nullable: true);
}
}
}