mirror of https://github.com/EasyAbp/EShop.git
4 changed files with 2800 additions and 7 deletions
File diff suppressed because it is too large
@ -0,0 +1,125 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EasyMall.Migrations |
|||
{ |
|||
public partial class AddedColumnTypes : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "OrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "OrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundedAmount", |
|||
table: "OrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ProductTotalPrice", |
|||
table: "OrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "UnitPrice", |
|||
table: "OrdersOrderLines", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "OrdersOrderLines", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "OrdersOrderLines", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,2)"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "OrdersOrders", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "OrdersOrders", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundedAmount", |
|||
table: "OrdersOrders", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ProductTotalPrice", |
|||
table: "OrdersOrders", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "UnitPrice", |
|||
table: "OrdersOrderLines", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "OrdersOrderLines", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "OrdersOrderLines", |
|||
type: "decimal(18,2)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue