using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Rmsys.Infrastructure.Migrations { /// public partial class AddMaterialSoftDelete : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DeletedAt", table: "materials", type: "datetime(6)", nullable: true); migrationBuilder.AddColumn( name: "IsDeleted", table: "materials", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "PrevStatus", table: "materials", type: "longtext", nullable: true) .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "TrashPath", table: "materials", type: "longtext", nullable: true) .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "DeletedAt", table: "materials"); migrationBuilder.DropColumn( name: "IsDeleted", table: "materials"); migrationBuilder.DropColumn( name: "PrevStatus", table: "materials"); migrationBuilder.DropColumn( name: "TrashPath", table: "materials"); } } }