贾荣国
3 years ago
25 changed files with 3089 additions and 52 deletions
File diff suppressed because it is too large
@ -0,0 +1,153 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace Win_in.Sfs.Scp.WebApi.Migrations |
||||
|
{ |
||||
|
public partial class Decimal : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "Qty", |
||||
|
table: "WebApi_UnplannedReceipt", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "SupplierPackConvertRate", |
||||
|
table: "WebApi_Receipt", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "ReceiveQty", |
||||
|
table: "WebApi_Receipt", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "SupplierPackConvertRate", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "StdPackQty", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "OrderQty", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "TaxRate", |
||||
|
table: "WebApi_PO", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,2)"); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "Qty", |
||||
|
table: "WebApi_UnplannedReceipt", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "SupplierPackConvertRate", |
||||
|
table: "WebApi_Receipt", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "ReceiveQty", |
||||
|
table: "WebApi_Receipt", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "SupplierPackConvertRate", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "StdPackQty", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "OrderQty", |
||||
|
table: "WebApi_PODetail", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "TaxRate", |
||||
|
table: "WebApi_PO", |
||||
|
type: "decimal(18,2)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue