mirror of https://github.com/EasyAbp/EShop.git
63 changed files with 12045 additions and 92 deletions
File diff suppressed because it is too large
@ -0,0 +1,43 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class RenamedNameToUniqueNameInCategory : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Name", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "UniqueName", |
|||
table: "EShopProductsCategories", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_EShopProductsCategories_UniqueName", |
|||
table: "EShopProductsCategories", |
|||
column: "UniqueName", |
|||
unique: true, |
|||
filter: "[UniqueName] IS NOT NULL"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "IX_EShopProductsCategories_UniqueName", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "UniqueName", |
|||
table: "EShopProductsCategories"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Name", |
|||
table: "EShopProductsCategories", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,107 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class RenamedNameToUniqueName : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "Name", |
|||
table: "EShopProductsProductTypes"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductName", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductName", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductTypeName", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "UniqueName", |
|||
table: "EShopProductsProductTypes", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductDisplayName", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductUniqueName", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductDisplayName", |
|||
table: "EShopOrdersOrderLines", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductTypeUniqueName", |
|||
table: "EShopOrdersOrderLines", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductUniqueName", |
|||
table: "EShopOrdersOrderLines", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "UniqueName", |
|||
table: "EShopProductsProductTypes"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductDisplayName", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductUniqueName", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductDisplayName", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductTypeUniqueName", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ProductUniqueName", |
|||
table: "EShopOrdersOrderLines"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "Name", |
|||
table: "EShopProductsProductTypes", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductName", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductName", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ProductTypeName", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
} |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,31 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class AddedSkuName : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SkuName", |
|||
table: "EShopPluginsBasketsBasketItems", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SkuName", |
|||
table: "EShopOrdersOrderLines", |
|||
nullable: true); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "SkuName", |
|||
table: "EShopPluginsBasketsBasketItems"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SkuName", |
|||
table: "EShopOrdersOrderLines"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue