using Microsoft.EntityFrameworkCore.Migrations; using NodaTime; #nullable disable namespace DysonNetwork.Sphere.Migrations { /// public partial class BetterLeavingChatAndRealm : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "leave_at", table: "realm_members", type: "timestamp with time zone", nullable: true); migrationBuilder.AddColumn( name: "is_community", table: "chat_rooms", type: "boolean", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "leave_at", table: "chat_members", type: "timestamp with time zone", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "leave_at", table: "realm_members"); migrationBuilder.DropColumn( name: "is_community", table: "chat_rooms"); migrationBuilder.DropColumn( name: "leave_at", table: "chat_members"); } } }