using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Brizco.Repository.Migrations { /// public partial class editTaskAndActivity : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Discriminator", schema: "public", table: "Tasks", type: "character varying(8)", maxLength: 8, nullable: false, oldClrType: typeof(string), oldType: "text"); migrationBuilder.AddColumn( name: "IsActivity", schema: "public", table: "Tasks", type: "boolean", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "UnDoneReason", schema: "public", table: "Tasks", type: "text", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "IsActivity", schema: "public", table: "Tasks"); migrationBuilder.DropColumn( name: "UnDoneReason", schema: "public", table: "Tasks"); migrationBuilder.AlterColumn( name: "Discriminator", schema: "public", table: "Tasks", type: "text", nullable: false, oldClrType: typeof(string), oldType: "character varying(8)", oldMaxLength: 8); } } }