using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace OneForMe.Migrations { /// public partial class AddCompletedStateToOrder : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "IsCompleted", table: "Orders", type: "INTEGER", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "CompletedAt", table: "Orders", type: "TEXT", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "IsCompleted", table: "Orders"); migrationBuilder.DropColumn( name: "CompletedAt", table: "Orders"); } } }