using DysonNetwork.Sphere.Chat; using Microsoft.EntityFrameworkCore.Migrations; using NodaTime; #nullable disable namespace DysonNetwork.Sphere.Migrations { /// public partial class EnrichChatMembers : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "break_until", table: "chat_members", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "timeout_cause", table: "chat_members", type: "jsonb", nullable: true); migrationBuilder.AddColumn( name: "timeout_until", table: "chat_members", type: "timestamp with time zone", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "break_until", table: "chat_members"); migrationBuilder.DropColumn( name: "timeout_cause", table: "chat_members"); migrationBuilder.DropColumn( name: "timeout_until", table: "chat_members"); } } }