贾荣国Home
3 years ago
18 changed files with 2999 additions and 23 deletions
File diff suppressed because it is too large
@ -0,0 +1,50 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
namespace Win_in.Sfs.Scp.WebApi.Migrations |
||||
|
{ |
||||
|
public partial class Update : Migration |
||||
|
{ |
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "Address", |
||||
|
table: "WebApi_UnplannedReceipt", |
||||
|
type: "nvarchar(8)", |
||||
|
maxLength: 8, |
||||
|
nullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "TaxRate", |
||||
|
table: "WebApi_PO", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6); |
||||
|
} |
||||
|
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Address", |
||||
|
table: "WebApi_UnplannedReceipt"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<decimal>( |
||||
|
name: "TaxRate", |
||||
|
table: "WebApi_PO", |
||||
|
type: "decimal(18,6)", |
||||
|
precision: 18, |
||||
|
scale: 6, |
||||
|
nullable: false, |
||||
|
defaultValue: 0m, |
||||
|
oldClrType: typeof(decimal), |
||||
|
oldType: "decimal(18,6)", |
||||
|
oldPrecision: 18, |
||||
|
oldScale: 6, |
||||
|
oldNullable: true); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue