mirror of https://github.com/EasyAbp/EShop.git
6 changed files with 3882 additions and 36 deletions
File diff suppressed because it is too large
@ -0,0 +1,303 @@ |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace EShopSample.Migrations |
|||
{ |
|||
public partial class ChangedMoneyToDecimal20_8 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "Price", |
|||
table: "EShopProductsProductSkus", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPrice", |
|||
table: "EShopProductsProductSkus", |
|||
type: "decimal(20,8)", |
|||
nullable: true, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsRefunds", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundedAmount", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ProductTotalPrice", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "UnitPrice", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(20,8)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(18,6)"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "Price", |
|||
table: "EShopProductsProductSkus", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPrice", |
|||
table: "EShopProductsProductSkus", |
|||
type: "decimal(18,6)", |
|||
nullable: true, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)", |
|||
oldNullable: true); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsRefunds", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "EShopPaymentsPayments", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "PaymentDiscount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "OriginalPaymentAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ActualPaymentAmount", |
|||
table: "EShopPaymentsPaymentItems", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "RefundedAmount", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "ProductTotalPrice", |
|||
table: "EShopOrdersOrders", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "UnitPrice", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalPrice", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
|
|||
migrationBuilder.AlterColumn<decimal>( |
|||
name: "TotalDiscount", |
|||
table: "EShopOrdersOrderLines", |
|||
type: "decimal(18,6)", |
|||
nullable: false, |
|||
oldClrType: typeof(decimal), |
|||
oldType: "decimal(20,8)"); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue