jiargcnXPS
3 years ago
4 changed files with 3039 additions and 11 deletions
File diff suppressed because it is too large
@ -0,0 +1,104 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win_in.Sfs.Scp.WebApi.Migrations |
|||
{ |
|||
public partial class UpdateTraceIdToString : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "TraceId", |
|||
table: "WebApi_UnplannedReceipt", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: false, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uniqueidentifier"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "TraceId", |
|||
table: "WebApi_Suppliers", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: false, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uniqueidentifier"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "TraceId", |
|||
table: "WebApi_Receipt", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: false, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uniqueidentifier"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "TraceId", |
|||
table: "WebApi_PO", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: false, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uniqueidentifier"); |
|||
|
|||
migrationBuilder.AlterColumn<string>( |
|||
name: "TraceId", |
|||
table: "WebApi_Part", |
|||
type: "nvarchar(64)", |
|||
maxLength: 64, |
|||
nullable: false, |
|||
oldClrType: typeof(Guid), |
|||
oldType: "uniqueidentifier"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "TraceId", |
|||
table: "WebApi_UnplannedReceipt", |
|||
type: "uniqueidentifier", |
|||
nullable: false, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(64)", |
|||
oldMaxLength: 64); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "TraceId", |
|||
table: "WebApi_Suppliers", |
|||
type: "uniqueidentifier", |
|||
nullable: false, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(64)", |
|||
oldMaxLength: 64); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "TraceId", |
|||
table: "WebApi_Receipt", |
|||
type: "uniqueidentifier", |
|||
nullable: false, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(64)", |
|||
oldMaxLength: 64); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "TraceId", |
|||
table: "WebApi_PO", |
|||
type: "uniqueidentifier", |
|||
nullable: false, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(64)", |
|||
oldMaxLength: 64); |
|||
|
|||
migrationBuilder.AlterColumn<Guid>( |
|||
name: "TraceId", |
|||
table: "WebApi_Part", |
|||
type: "uniqueidentifier", |
|||
nullable: false, |
|||
oldClrType: typeof(string), |
|||
oldType: "nvarchar(64)", |
|||
oldMaxLength: 64); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue