using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using NodaTime; #nullable disable namespace Foxnouns.Backend.Database.Migrations { /// [DbContext(typeof(DatabaseContext))] [Migration("20240713000719_AddDeleted")] public partial class AddDeleted : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "deleted", table: "users", type: "boolean", nullable: false, defaultValue: false ); migrationBuilder.AddColumn( name: "deleted_at", table: "users", type: "timestamp with time zone", nullable: true ); migrationBuilder.AddColumn( name: "deleted_by", table: "users", type: "bigint", nullable: true ); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn(name: "deleted", table: "users"); migrationBuilder.DropColumn(name: "deleted_at", table: "users"); migrationBuilder.DropColumn(name: "deleted_by", table: "users"); } } }