mirror of https://github.com/EasyAbp/EShop.git
18 changed files with 3899 additions and 18 deletions
File diff suppressed because it is too large
@ -0,0 +1,33 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedNameAndRemovedParentCategoryId : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "ParentCategoryId", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Name", |
|||
table: "EShopProductsCategories", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Name", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.AddColumn<Guid>( |
|||
name: "ParentCategoryId", |
|||
table: "EShopProductsCategories", |
|||
type: "uniqueidentifier", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue