zhaoxinyu
4 months ago
220 changed files with 71 additions and 590938 deletions
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -1,63 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307101 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "EndDate", |
|
||||
table: "Set_PriceList", |
|
||||
newName: "EndTime"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "BeginDate", |
|
||||
table: "Set_PriceList", |
|
||||
newName: "BeginTime"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PriceList", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ClientCode", |
|
||||
table: "Set_PriceList", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "LU", |
|
||||
table: "Set_PriceList", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PriceList"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ClientCode", |
|
||||
table: "Set_PriceList"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "LU", |
|
||||
table: "Set_PriceList"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "EndTime", |
|
||||
table: "Set_PriceList", |
|
||||
newName: "EndDate"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "BeginTime", |
|
||||
table: "Set_PriceList", |
|
||||
newName: "BeginDate"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,33 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307111 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ClientCode", |
|
||||
table: "Set_PriceListBJ", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "LU", |
|
||||
table: "Set_PriceListBJ", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ClientCode", |
|
||||
table: "Set_PriceListBJ"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "LU", |
|
||||
table: "Set_PriceListBJ"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,39 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307112 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_PURCHASE_PRICE", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
LU = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_PURCHASE_PRICE", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_PURCHASE_PRICE"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,41 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307121 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_TB_RePartsRelationship", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
LU = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
RepLU = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ClientCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
BusinessType = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_TB_RePartsRelationship", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_TB_RePartsRelationship"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,206 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307131 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "State", |
|
||||
table: "Set_INVOICE_GRP", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend1", |
|
||||
table: "Set_HBPO_SE_EDI", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend2", |
|
||||
table: "Set_HBPO_SE_EDI", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend3", |
|
||||
table: "Set_HBPO_SE_EDI", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend4", |
|
||||
table: "Set_HBPO_SE_EDI", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "Set_HBPO_SE_EDI", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "State", |
|
||||
table: "Set_HBPO_CAN_SA", |
|
||||
type: "int", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend1", |
|
||||
table: "Set_BBAC_SE_EDI", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend2", |
|
||||
table: "Set_BBAC_SE_EDI", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend3", |
|
||||
table: "Set_BBAC_SE_EDI", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend4", |
|
||||
table: "Set_BBAC_SE_EDI", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "Set_BBAC_SE_EDI", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "State", |
|
||||
table: "Set_BBAC_CAN_SA", |
|
||||
type: "int", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_CodeSetting", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Project = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Value = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Description = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Enabled = table.Column<bool>(type: "bit", nullable: false), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_CodeSetting", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_CodeSetting"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "State", |
|
||||
table: "Set_INVOICE_GRP"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend1", |
|
||||
table: "Set_HBPO_SE_EDI"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend2", |
|
||||
table: "Set_HBPO_SE_EDI"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend3", |
|
||||
table: "Set_HBPO_SE_EDI"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend4", |
|
||||
table: "Set_HBPO_SE_EDI"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Site", |
|
||||
table: "Set_HBPO_SE_EDI"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend1", |
|
||||
table: "Set_BBAC_SE_EDI"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend2", |
|
||||
table: "Set_BBAC_SE_EDI"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend3", |
|
||||
table: "Set_BBAC_SE_EDI"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend4", |
|
||||
table: "Set_BBAC_SE_EDI"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Site", |
|
||||
table: "Set_BBAC_SE_EDI"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "State", |
|
||||
table: "Set_HBPO_CAN_SA", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int", |
|
||||
oldMaxLength: 50); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "State", |
|
||||
table: "Set_BBAC_CAN_SA", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int", |
|
||||
oldMaxLength: 50); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,53 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307141 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "Set_HBPO_SA", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "Set_HBPO_CAN_SA", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "Set_BBAC_SA", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "Set_BBAC_CAN_SA", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Site", |
|
||||
table: "Set_HBPO_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Site", |
|
||||
table: "Set_HBPO_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Site", |
|
||||
table: "Set_BBAC_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Site", |
|
||||
table: "Set_BBAC_CAN_SA"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,29 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307142 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<bool>( |
|
||||
name: "State", |
|
||||
table: "Set_control", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "State", |
|
||||
table: "Set_control", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
oldClrType: typeof(bool), |
|
||||
oldType: "bit"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,181 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307143 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_TB_RePartsRelationship", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "int", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_PD_DETAIL", |
|
||||
type: "int", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_NOT_SA_DETAIL", |
|
||||
type: "int", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL", |
|
||||
type: "int", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_CAN_SA", |
|
||||
type: "int", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PriceList", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_INVOICE_GRP", |
|
||||
type: "int", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_TB_RePartsRelationship", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int", |
|
||||
oldMaxLength: 50); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_PD_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int", |
|
||||
oldMaxLength: 50); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_NOT_SA_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int", |
|
||||
oldMaxLength: 50); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int", |
|
||||
oldMaxLength: 50); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_CAN_SA", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int", |
|
||||
oldMaxLength: 50); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PriceList", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_INVOICE_GRP", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int", |
|
||||
oldMaxLength: 50); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,163 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307181 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Site", |
|
||||
table: "Set_BBAC_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "MaterialProperty", |
|
||||
table: "Set_relationship", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(36)", |
|
||||
oldMaxLength: 36); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend1", |
|
||||
table: "Set_PUB_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend2", |
|
||||
table: "Set_PUB_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend3", |
|
||||
table: "Set_PUB_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend4", |
|
||||
table: "Set_PUB_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend1", |
|
||||
table: "Set_HBPO_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend2", |
|
||||
table: "Set_HBPO_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend3", |
|
||||
table: "Set_HBPO_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend4", |
|
||||
table: "Set_HBPO_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend1", |
|
||||
table: "Set_BBAC_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend2", |
|
||||
table: "Set_BBAC_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend3", |
|
||||
table: "Set_BBAC_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend4", |
|
||||
table: "Set_BBAC_PD_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend1", |
|
||||
table: "Set_PUB_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend2", |
|
||||
table: "Set_PUB_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend3", |
|
||||
table: "Set_PUB_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend4", |
|
||||
table: "Set_PUB_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend1", |
|
||||
table: "Set_HBPO_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend2", |
|
||||
table: "Set_HBPO_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend3", |
|
||||
table: "Set_HBPO_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend4", |
|
||||
table: "Set_HBPO_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend1", |
|
||||
table: "Set_BBAC_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend2", |
|
||||
table: "Set_BBAC_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend3", |
|
||||
table: "Set_BBAC_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend4", |
|
||||
table: "Set_BBAC_PD_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "MaterialProperty", |
|
||||
table: "Set_relationship", |
|
||||
type: "nvarchar(36)", |
|
||||
maxLength: 36, |
|
||||
nullable: false, |
|
||||
defaultValue: "", |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "Set_BBAC_CAN_SA", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,17 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307182 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,56 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307191 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ContractNo", |
|
||||
table: "Set_PriceListBJ", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "Date", |
|
||||
table: "Set_PriceListBJ", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ContractNo", |
|
||||
table: "Set_PriceList", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "Date", |
|
||||
table: "Set_PriceList", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ContractNo", |
|
||||
table: "Set_PriceListBJ"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Date", |
|
||||
table: "Set_PriceListBJ"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ContractNo", |
|
||||
table: "Set_PriceList"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Date", |
|
||||
table: "Set_PriceList"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,24 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307192 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_SA", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_SA"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,173 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class vmi : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_JobItem", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|
||||
Cron = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|
||||
Service = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false), |
|
||||
IsRunning = table.Column<bool>(type: "bit", nullable: false), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_JobItem", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_VmiBalance", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
LU = table.Column<string>(type: "nvarchar(450)", nullable: false), |
|
||||
PN = table.Column<string>(type: "nvarchar(450)", nullable: false), |
|
||||
PNType = table.Column<int>(type: "int", nullable: false), |
|
||||
Type = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_VmiBalance", x => x.Id); |
|
||||
table.UniqueConstraint("AK_Set_VmiBalance_PN_LU", x => new { x.PN, x.LU }); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_VmiCategory", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Type = table.Column<int>(type: "int", nullable: false), |
|
||||
Number = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_VmiCategory", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_VmiSnapshot", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Name = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Path = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_VmiSnapshot", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "JobLog", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
JobId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
Start = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
End = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Success = table.Column<bool>(type: "bit", nullable: false), |
|
||||
Exception = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_JobLog", x => x.Id); |
|
||||
table.ForeignKey( |
|
||||
name: "FK_JobLog_Set_JobItem_JobId", |
|
||||
column: x => x.JobId, |
|
||||
principalTable: "Set_JobItem", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.SetNull); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_VmiLog", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
CategoryId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
BalanceId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
SessionId = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Type = table.Column<int>(type: "int", nullable: false) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_VmiLog", x => x.Id); |
|
||||
table.ForeignKey( |
|
||||
name: "FK_Set_VmiLog_Set_VmiBalance_BalanceId", |
|
||||
column: x => x.BalanceId, |
|
||||
principalTable: "Set_VmiBalance", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
table.ForeignKey( |
|
||||
name: "FK_Set_VmiLog_Set_VmiCategory_CategoryId", |
|
||||
column: x => x.CategoryId, |
|
||||
principalTable: "Set_VmiCategory", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("a6d57042-e087-421e-a086-dfb34c6bfe80"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_JobLog_JobId", |
|
||||
table: "JobLog", |
|
||||
column: "JobId"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_JobItem_Name", |
|
||||
table: "Set_JobItem", |
|
||||
column: "Name", |
|
||||
unique: true); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiCategory_Number", |
|
||||
table: "Set_VmiCategory", |
|
||||
column: "Number", |
|
||||
unique: true); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiLog_BalanceId", |
|
||||
table: "Set_VmiLog", |
|
||||
column: "BalanceId"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiLog_CategoryId", |
|
||||
table: "Set_VmiLog", |
|
||||
column: "CategoryId"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "JobLog"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_VmiSnapshot"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_JobItem"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_VmiCategory"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,53 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307193 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_TaskJob", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Type = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
State = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
TaskId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ActionName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Error = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Creator = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Email = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
FileName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
RealFileName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
RealDownFileName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
DownFileName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true), |
|
||||
ServiceName = table.Column<string>(type: "nvarchar(300)", maxLength: 300, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Enabled = table.Column<bool>(type: "bit", nullable: false), |
|
||||
Remark = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_TaskJob", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_TaskJob"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,45 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307194 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("a6d57042-e087-421e-a086-dfb34c6bfe80")); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_SA_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("6efe1947-a242-4d20-b633-20b0f716a782"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("6efe1947-a242-4d20-b633-20b0f716a782")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_PUB_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("a6d57042-e087-421e-a086-dfb34c6bfe80"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,227 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class vmi2 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropUniqueConstraint( |
|
||||
name: "AK_Set_VmiBalance_PN_LU", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("6efe1947-a242-4d20-b633-20b0f716a782")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PNType", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Type", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "VinCode"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "PN", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "PartCode"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CreatedBy", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "CreatedDate", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "OrderNumber", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "CreationTime", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Desc", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ErpToLoc", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: false, |
|
||||
defaultValue: ""); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "MatchNumber", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PjsNum", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ProType", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "SeqNumber", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "ShippingDate", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Tmpe4", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "UniqueCode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddUniqueConstraint( |
|
||||
name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "ErpToLoc", "PartCode", "LU" }); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropUniqueConstraint( |
|
||||
name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CreatedBy", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CreatedDate", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "OrderNumber", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CreationTime", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Desc", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ErpToLoc", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "MatchNumber", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PjsNum", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ProType", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "SeqNumber", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ShippingDate", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Tmpe4", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "UniqueCode", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "VinCode", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "Type"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "PN"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "PNType", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddUniqueConstraint( |
|
||||
name: "AK_Set_VmiBalance_PN_LU", |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "PN", "LU" }); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("6efe1947-a242-4d20-b633-20b0f716a782"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,217 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _20230721 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Category", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Category", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "Set_PUB_CAN_SA", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "BussiessType", |
|
||||
table: "Set_INVOICE_WAIT_DETAIL", |
|
||||
type: "int", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "Set_INVOICE_NOT_SETTLE", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
defaultValue: 0m); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "InvoiceState", |
|
||||
table: "Set_INVOICE_GRP", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_HBPO_SA_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_HBPO_SA", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_HBPO_NOT_SA_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_HBPO_CAN_SA", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ContractDocID", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ContractDocID", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Site", |
|
||||
table: "Set_BBAC_CAN_SA", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("7cb83f54-2a71-409e-aaf3-a2adc80616e4"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("7cb83f54-2a71-409e-aaf3-a2adc80616e4")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Site", |
|
||||
table: "Set_PUB_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Qty", |
|
||||
table: "Set_INVOICE_NOT_SETTLE"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "InvoiceState", |
|
||||
table: "Set_INVOICE_GRP"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_HBPO_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_HBPO_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_HBPO_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_HBPO_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ContractDocID", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ContractDocID", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Site", |
|
||||
table: "Set_BBAC_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "BussiessType", |
|
||||
table: "Set_INVOICE_WAIT_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int", |
|
||||
oldMaxLength: 50); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Category", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Category", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("579e2b8d-c9ec-4754-9520-e4475aea2a73"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,34 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _20230722 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("7cb83f54-2a71-409e-aaf3-a2adc80616e4")); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("77c86249-e0ed-437e-9554-66043202e7a9"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("77c86249-e0ed-437e-9554-66043202e7a9")); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("7cb83f54-2a71-409e-aaf3-a2adc80616e4"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,73 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307220002 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("77c86249-e0ed-437e-9554-66043202e7a9")); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_BBAC_SEC_DETAIL", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Category = table.Column<int>(type: "int", nullable: false), |
|
||||
WmsBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ShippingDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
MaterialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
MaterialDes = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PrimitiveLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ReplaceLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CustomerOfflineTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
SAQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
SEQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
DiffQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
MateType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
FixPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
SeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PJISSeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_BBAC_SEC_DETAIL", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_BBAC_SEC_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298")); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("77c86249-e0ed-437e-9554-66043202e7a9"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,112 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307241 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298")); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_HBPO_SEC_DETAIL", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Category = table.Column<int>(type: "int", nullable: false), |
|
||||
WmsBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ShippingDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
MaterialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
MaterialDes = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PrimitiveLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ReplaceLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CustomerOfflineTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
SAQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
SEQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
DiffQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
MateType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
FixPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
SeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PJISSeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_HBPO_SEC_DETAIL", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_PUB_SEC_DETAIL", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Category = table.Column<int>(type: "int", nullable: false), |
|
||||
WmsBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ShippingDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
MaterialNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
MaterialDes = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PrimitiveLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ReplaceLU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CustomerOfflineTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
SAQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
SEQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
DiffQty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
MateType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
FixPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
SeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PJISSeqNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_PUB_SEC_DETAIL", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_HBPO_SEC_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_PUB_SEC_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f")); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("a18cc96a-c18c-4a88-98ff-6136f2917298"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,435 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class vmi3 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_JobLog_Set_JobItem_JobId", |
|
||||
table: "JobLog"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_JobLog", |
|
||||
table: "JobLog"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f")); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "JobLog", |
|
||||
newName: "Set_JobLog"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "SessionId", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "VinCode"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_JobLog_JobId", |
|
||||
table: "Set_JobLog", |
|
||||
newName: "IX_Set_JobLog_JobId"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "BalanceDesc", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "CreationTime", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "D2", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Desc", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ErpToLoc", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "F2", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "G2", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "GroupId", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "H2", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "I2", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "J2", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "K2", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "LU", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "MatchNumber", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PjsNum", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ProType", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<decimal>( |
|
||||
name: "Qty", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
defaultValue: 0m); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "SeqNumber", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "ShippingDate", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Tmpe4", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "UniqueCode", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "VmiType", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<Guid>( |
|
||||
name: "JobId", |
|
||||
table: "Set_JobLog", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: false, |
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"), |
|
||||
oldClrType: typeof(Guid), |
|
||||
oldType: "uniqueidentifier", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_Set_JobLog", |
|
||||
table: "Set_JobLog", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "Id", "CodeType", "CreationTime", "Desc", "ErpToLoc", "LU", "MatchNumber", "PartCode", "PjsNum", "ProType", "Qty", "SeqNumber", "ShippingDate", "Tmpe4", "UniqueCode", "VinCode" }, |
|
||||
values: new object[] { new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "test", "key1", "key3", null, "key2", null, null, 0m, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, null, null }); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiCategory", |
|
||||
columns: new[] { "Id", "Name", "Number", "Type" }, |
|
||||
values: new object[,] |
|
||||
{ |
|
||||
{ new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8"), "发运", "100", 0 }, |
|
||||
{ new Guid("869f1589-9063-a545-719e-a83b6dca03c3"), "结算", "200", 1 }, |
|
||||
{ new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), "客户退货", "300", 1 }, |
|
||||
{ new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), "调整入库", "400", 0 }, |
|
||||
{ new Guid("42230472-9f26-7484-ff2a-451878e9955f"), "调整出库", "500", 1 }, |
|
||||
{ new Guid("3e0655a6-2532-a861-344f-b9c53c809c64"), "漏发补货", "600", 0 }, |
|
||||
{ new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de"), "负库存补货", "700", 0 } |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiCategory_Name", |
|
||||
table: "Set_VmiCategory", |
|
||||
column: "Name", |
|
||||
unique: true); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_Set_JobLog_Set_JobItem_JobId", |
|
||||
table: "Set_JobLog", |
|
||||
column: "JobId", |
|
||||
principalTable: "Set_JobItem", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_Set_JobLog_Set_JobItem_JobId", |
|
||||
table: "Set_JobLog"); |
|
||||
|
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_VmiCategory_Name", |
|
||||
table: "Set_VmiCategory"); |
|
||||
|
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_Set_JobLog", |
|
||||
table: "Set_JobLog"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("3e0655a6-2532-a861-344f-b9c53c809c64")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("42230472-9f26-7484-ff2a-451878e9955f")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("869f1589-9063-a545-719e-a83b6dca03c3")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BalanceDesc", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CreationTime", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "D2", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Desc", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ErpToLoc", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "F2", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "G2", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "GroupId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "H2", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "I2", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "J2", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "K2", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "LU", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "MatchNumber", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PjsNum", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ProType", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Qty", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "SeqNumber", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ShippingDate", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Tmpe4", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "UniqueCode", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "VmiType", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "Set_JobLog", |
|
||||
newName: "JobLog"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "VinCode", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "SessionId"); |
|
||||
|
|
||||
migrationBuilder.RenameIndex( |
|
||||
name: "IX_Set_JobLog_JobId", |
|
||||
table: "JobLog", |
|
||||
newName: "IX_JobLog_JobId"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<Guid>( |
|
||||
name: "JobId", |
|
||||
table: "JobLog", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(Guid), |
|
||||
oldType: "uniqueidentifier"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_JobLog", |
|
||||
table: "JobLog", |
|
||||
column: "Id"); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("c318a2b7-df89-4c68-aa3a-0e9c470d584f"), null, "0 0 8 26 *", false, "库存快照", "Win.Sfs.SettleAccount.Entities.BQ.VmiService" }); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_JobLog_Set_JobItem_JobId", |
|
||||
table: "JobLog", |
|
||||
column: "JobId", |
|
||||
principalTable: "Set_JobItem", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.SetNull); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,417 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307261 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_PUB_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_PUB_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_PUB_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_PUB_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_PUB_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_PUB_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_PUB_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_PUB_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_PUB_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_HBPO_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_HBPO_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_HBPO_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_HBPO_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_HBPO_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_HBPO_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_HBPO_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_HBPO_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_HBPO_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_HBPO_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_HBPO_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_HBPO_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_BBAC_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_BBAC_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_BBAC_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_BBAC_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_BBAC_CAN_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_BBAC_CAN_SA"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_PUB_SA_DETAIL", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_PUB_SA_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_PUB_SA_DETAIL", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_PUB_NOT_SA_DETAIL", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_PUB_NOT_SA_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_PUB_NOT_SA_DETAIL", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_PUB_CAN_SA", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_PUB_CAN_SA", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_PUB_CAN_SA", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_HBPO_SA_DETAIL", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_HBPO_SA_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_HBPO_SA_DETAIL", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_HBPO_SA", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_HBPO_SA", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_HBPO_SA", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_HBPO_NOT_SA_DETAIL", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_HBPO_NOT_SA_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_HBPO_NOT_SA_DETAIL", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_HBPO_CAN_SA", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_HBPO_CAN_SA", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_HBPO_CAN_SA", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_BBAC_SA_DETAIL", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_BBAC_SA_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_BBAC_SA_DETAIL", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_BBAC_CAN_SA", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_BBAC_CAN_SA", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_BBAC_CAN_SA", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,130 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307260001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_BBAC_CAN_SA", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_BBAC_ADJ_DETAIL", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
BusinessType = table.Column<int>(type: "int", nullable: false), |
|
||||
IsReturn = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ContractDocID = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
OldInvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
InvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Version = table.Column<int>(type: "int", nullable: false), |
|
||||
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SettleDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
LU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
KeyCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
GroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_BBAC_ADJ_DETAIL", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_HBPO_ADJ_DETAIL", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
BusinessType = table.Column<int>(type: "int", nullable: false), |
|
||||
OldInvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
InvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Version = table.Column<int>(type: "int", nullable: false), |
|
||||
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SettleDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
LU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
KeyCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
GroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_HBPO_ADJ_DETAIL", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_PUB_ADJ_DETAIL", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Extend1 = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
BusinessType = table.Column<int>(type: "int", nullable: false), |
|
||||
OldInvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
InvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Version = table.Column<int>(type: "int", nullable: false), |
|
||||
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SettleDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
LU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
KeyCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
GroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_PUB_ADJ_DETAIL", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_BBAC_ADJ_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_HBPO_ADJ_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_PUB_ADJ_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BusinessType", |
|
||||
table: "Set_BBAC_CAN_SA"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,24 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307262 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("92cce083-20a8-5335-31ea-e390c57cac1f"), null, "0 0/1 * * * ?", false, "HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.HBPOSeSyncAppService" }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("92cce083-20a8-5335-31ea-e390c57cac1f")); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,34 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307263 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("92cce083-20a8-5335-31ea-e390c57cac1f")); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), null, "0 0/1 * * * ?", false, "HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.HBPOSeSyncAppService" }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68")); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("92cce083-20a8-5335-31ea-e390c57cac1f"), null, "0 0/1 * * * ?", false, "HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.HBPOSeSyncAppService" }); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,202 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class vmi4 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_Set_VmiLog_Set_VmiBalance_BalanceId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_Set_VmiLog_Set_VmiCategory_CategoryId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_VmiLog_BalanceId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_VmiLog_CategoryId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("3e0655a6-2532-a861-344f-b9c53c809c64")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("869f1589-9063-a545-719e-a83b6dca03c3")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BalanceId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CategoryId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Type", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "D2", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "Category"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Tmpe4", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "CustomOrderNumber"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<decimal>( |
|
||||
name: "Count", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
defaultValue: 0m); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "VmiCategoryId", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiCategory", |
|
||||
columns: new[] { "Id", "Name", "Number", "Type" }, |
|
||||
values: new object[] { new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), "发运入库", "100", 0 }); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiCategory", |
|
||||
columns: new[] { "Id", "Name", "Number", "Type" }, |
|
||||
values: new object[] { new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), "结算出库", "200", 1 }); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiLog_VmiCategoryId", |
|
||||
table: "Set_VmiLog", |
|
||||
column: "VmiCategoryId"); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_Set_VmiLog_Set_VmiCategory_VmiCategoryId", |
|
||||
table: "Set_VmiLog", |
|
||||
column: "VmiCategoryId", |
|
||||
principalTable: "Set_VmiCategory", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Restrict); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_Set_VmiLog_Set_VmiCategory_VmiCategoryId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_VmiLog_VmiCategoryId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiCategory", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Count", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "VmiCategoryId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Category", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "D2"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "CustomOrderNumber", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "Tmpe4"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "BalanceId", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: false, |
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "CategoryId", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: false, |
|
||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000")); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "Type", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiCategory", |
|
||||
columns: new[] { "Id", "Name", "Number", "Type" }, |
|
||||
values: new object[,] |
|
||||
{ |
|
||||
{ new Guid("a6462ee4-6e2c-bc8b-b1cb-5203c8dcaea8"), "发运", "100", 0 }, |
|
||||
{ new Guid("869f1589-9063-a545-719e-a83b6dca03c3"), "结算", "200", 1 }, |
|
||||
{ new Guid("3e0655a6-2532-a861-344f-b9c53c809c64"), "漏发补货", "600", 0 }, |
|
||||
{ new Guid("27b1609e-05af-cef7-f5f4-dd598c31b4de"), "负库存补货", "700", 0 } |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiLog_BalanceId", |
|
||||
table: "Set_VmiLog", |
|
||||
column: "BalanceId"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiLog_CategoryId", |
|
||||
table: "Set_VmiLog", |
|
||||
column: "CategoryId"); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_Set_VmiLog_Set_VmiBalance_BalanceId", |
|
||||
table: "Set_VmiLog", |
|
||||
column: "BalanceId", |
|
||||
principalTable: "Set_VmiBalance", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_Set_VmiLog_Set_VmiCategory_CategoryId", |
|
||||
table: "Set_VmiLog", |
|
||||
column: "CategoryId", |
|
||||
principalTable: "Set_VmiCategory", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Cascade); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,24 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class vmi5 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDisabled", |
|
||||
table: "Set_JobItem", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDisabled", |
|
||||
table: "Set_JobItem"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,58 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307270001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend3", |
|
||||
table: "Set_INVOICE_WAIT_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Extend4", |
|
||||
table: "Set_INVOICE_WAIT_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "BeginDate", |
|
||||
table: "Set_INVOICE_WAIT_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "EndDate", |
|
||||
table: "Set_INVOICE_WAIT_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BeginDate", |
|
||||
table: "Set_INVOICE_WAIT_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "EndDate", |
|
||||
table: "Set_INVOICE_WAIT_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend3", |
|
||||
table: "Set_INVOICE_WAIT_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Extend4", |
|
||||
table: "Set_INVOICE_WAIT_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,46 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307271 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68")); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_SyncPositionFlag", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
TableName = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Position = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_SyncPositionFlag", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_SyncPositionFlag"); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "IsDisabled", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), null, "0 0/1 * * * ?", false, false, "HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.HBPOSeSyncAppService" }); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,93 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307270004 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_BBAC_ADJ_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ParentInvbillNum", |
|
||||
table: "Set_INVOICE_GRP", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<decimal>( |
|
||||
name: "Tax", |
|
||||
table: "Set_INVOICE_GRP", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
defaultValue: 0m); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<bool>( |
|
||||
name: "IsReturn", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL", |
|
||||
type: "bit", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: false, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ParentInvbillNum", |
|
||||
table: "Set_INVOICE_GRP"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Tax", |
|
||||
table: "Set_INVOICE_GRP"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "IsReturn", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(bool), |
|
||||
oldType: "bit", |
|
||||
oldMaxLength: 50); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_BBAC_ADJ_DETAIL", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
BusinessType = table.Column<int>(type: "int", nullable: false), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ContractDocID = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
GroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
InvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
IsReturn = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
KeyCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
LU = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
OldInvBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PN = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SettleDate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Version = table.Column<int>(type: "int", nullable: false) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_BBAC_ADJ_DETAIL", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,56 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class vmi6 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<DateTime>( |
|
||||
name: "End", |
|
||||
table: "Set_JobLog", |
|
||||
type: "datetime2", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(DateTime), |
|
||||
oldType: "datetime2"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Host", |
|
||||
table: "Set_JobLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
|
||||
column: "Service", |
|
||||
value: "Win.Sfs.SettleAccount.Entities.BQ.VmiAppService"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Host", |
|
||||
table: "Set_JobLog"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<DateTime>( |
|
||||
name: "End", |
|
||||
table: "Set_JobLog", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), |
|
||||
oldClrType: typeof(DateTime), |
|
||||
oldType: "datetime2", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
|
||||
column: "Service", |
|
||||
value: "Win.Sfs.SettleAccount.Entities.BQ.VmiService"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,216 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307311 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "CreatorId", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "LastModificationTime", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "LastModifierId", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Batch", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "BillTime", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CustId", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "DeliveryHose", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "DeliveryIndex", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "DnBillNum", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DnBillTime", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "DnOper", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "FromErpLocCode", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "FromHose", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "FromLocCode", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Oper", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Remark", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ToErpLocCode", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ToHose", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ToLocCode", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CreatorId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "LastModificationTime", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "LastModifierId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Batch", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BillTime", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CustId", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeliveryHose", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeliveryIndex", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DnBillNum", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DnBillTime", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DnOper", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "FromErpLocCode", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "FromHose", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "FromLocCode", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Oper", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Remark", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ToErpLocCode", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ToHose", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ToLocCode", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,516 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202307312 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Batch", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "BillCharacter", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "BillTime", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CodeType", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "DeliverCode", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ErpToLoc", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "FromLoc", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "MESConfigCode", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "MatchNumber", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Num", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Oper", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "OrderNum", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "OrigiCode", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PjsNum", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Position", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "RealCode", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "RealPartCode", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "RefBillNum", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "RefVinCode", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Remark", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Seq", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ToLoc", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "UniqueCode", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "VinCode", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Batch", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "BillCharacter", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "BillTime", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "datetime2", |
|
||||
nullable: false, |
|
||||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CodeType", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "DeliverCode", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ErpToLoc", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "FromLoc", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "MESConfigCode", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "MatchNumber", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Num", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Oper", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "OrderNum", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "OrigiCode", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PjsNum", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Position", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "RealCode", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "RealPartCode", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "RefBillNum", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "RefVinCode", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Remark", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Seq", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ToLoc", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "UniqueCode", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "VinCode", |
|
||||
table: "Set_BBAC_SE_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Batch", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BillCharacter", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BillTime", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CodeType", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeliverCode", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ErpToLoc", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "FromLoc", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "MESConfigCode", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "MatchNumber", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Num", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Oper", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "OrderNum", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "OrigiCode", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PjsNum", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Position", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "RealCode", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "RealPartCode", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "RefBillNum", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "RefVinCode", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Remark", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Seq", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ToLoc", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "UniqueCode", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "VinCode", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Batch", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BillCharacter", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BillTime", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CodeType", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeliverCode", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ErpToLoc", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "FromLoc", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "MESConfigCode", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "MatchNumber", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Num", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Oper", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "OrderNum", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "OrigiCode", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PjsNum", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Position", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "RealCode", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "RealPartCode", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "RefBillNum", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "RefVinCode", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Remark", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Seq", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ToLoc", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "UniqueCode", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "VinCode", |
|
||||
table: "Set_BBAC_SE_DETAIL"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,53 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202308011 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Version", |
|
||||
table: "Set_BBAC_SE_EDI", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(int), |
|
||||
oldType: "int"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<bool>( |
|
||||
name: "IsReturn", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL", |
|
||||
type: "bit", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: false, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<int>( |
|
||||
name: "Version", |
|
||||
table: "Set_BBAC_SE_EDI", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "IsReturn", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(bool), |
|
||||
oldType: "bit", |
|
||||
oldMaxLength: 50); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,384 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class vmi7 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropForeignKey( |
|
||||
name: "FK_Set_VmiLog_Set_VmiCategory_VmiCategoryId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_VmiCategory"); |
|
||||
|
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_VmiLog_VmiCategoryId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BalanceDesc", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Category", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CreatorId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "F2", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "G2", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "H2", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "I2", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "LastModificationTime", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "LastModifierId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "VmiCategoryId", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Desc", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "VmiType", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "LogType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "VinCode", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "RelationNumber"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "UniqueCode", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No6"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Tmpe4", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No5"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "ProType", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No4"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No3"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "OrderNumber", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No2"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "LU", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No1"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "K2", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "DeliverSubBillType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "J2", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "CustomOrderNumber"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "CreatedDate", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "CreatedTime"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "ProType", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "Remark"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "ChangedType", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "DeliverBillType", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "DeliverBillType", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "DeliverSubBillType", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), |
|
||||
column: "Remark", |
|
||||
value: "test"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ChangedType", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeliverBillType", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeliverBillType", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeliverSubBillType", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "RelationNumber", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "VinCode"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No6", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "UniqueCode"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No5", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "Tmpe4"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No4", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "ProType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No3", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "PartCode"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No2", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "OrderNumber"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No1", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "LU"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "LogType", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "VmiType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "DeliverSubBillType", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "K2"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "CustomOrderNumber", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "J2"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "CreatedTime", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "CreatedDate"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Remark", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "ProType"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "BalanceDesc", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Category", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "CreatorId", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "F2", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "G2", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "H2", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "I2", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "LastModificationTime", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "LastModifierId", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "VmiCategoryId", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Desc", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_VmiCategory", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|
||||
Number = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|
||||
Type = table.Column<int>(type: "int", nullable: false) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_VmiCategory", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), |
|
||||
columns: new[] { "Desc", "ProType" }, |
|
||||
values: new object[] { "test", null }); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiCategory", |
|
||||
columns: new[] { "Id", "Name", "Number", "Type" }, |
|
||||
values: new object[,] |
|
||||
{ |
|
||||
{ new Guid("b3b321dd-5e0e-55b0-5548-70a742e9a4db"), "发运入库", "100", 0 }, |
|
||||
{ new Guid("a04d00ac-0e9c-064d-b7ce-af0b4d7c8c6b"), "结算出库", "200", 1 }, |
|
||||
{ new Guid("c9199f7f-7cc8-7423-d608-f206167ae0b6"), "客户退货", "300", 1 }, |
|
||||
{ new Guid("5fda8ad4-f424-a9e1-8174-72c0f29fc225"), "调整入库", "400", 0 }, |
|
||||
{ new Guid("42230472-9f26-7484-ff2a-451878e9955f"), "调整出库", "500", 1 } |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiLog_VmiCategoryId", |
|
||||
table: "Set_VmiLog", |
|
||||
column: "VmiCategoryId"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiCategory_Name", |
|
||||
table: "Set_VmiCategory", |
|
||||
column: "Name", |
|
||||
unique: true); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiCategory_Number", |
|
||||
table: "Set_VmiCategory", |
|
||||
column: "Number", |
|
||||
unique: true); |
|
||||
|
|
||||
migrationBuilder.AddForeignKey( |
|
||||
name: "FK_Set_VmiLog_Set_VmiCategory_VmiCategoryId", |
|
||||
table: "Set_VmiLog", |
|
||||
column: "VmiCategoryId", |
|
||||
principalTable: "Set_VmiCategory", |
|
||||
principalColumn: "Id", |
|
||||
onDelete: ReferentialAction.Restrict); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,45 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202308031 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_BBAC_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_BBAC_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_BBAC_SA"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_BBAC_SA", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_BBAC_SA", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_BBAC_SA", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,391 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class vmi8 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropUniqueConstraint( |
|
||||
name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6")); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "ShippingDate", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "DeliverTime"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "SeqNumber", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "factory"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "RelationNumber", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "VinCode"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No6", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "UniqueCode"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No5", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "SettlementVinCode"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No4", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "Seq"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No3", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "RealCode"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No2", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "ReMark"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "No1", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "PartCode2"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Desc", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "PartCode"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "DeliverSubBillType", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "OrderNum"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "DeliverBillType", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "SubBillType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "CustomOrderNumber", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "CustomerPartCode"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "CreationTime", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "ChangedTime"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "CreatedTime", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "BillTime"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "CreatedBy", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "Configcode"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Remark", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "ReMark"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "ShippingDate", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "DeliverTime"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "SeqNumber", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "factory"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "LU", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "OrderNum"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "DeliverSubBillType", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "SubBillType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "DeliverBillType", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "BillType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "CustomOrderNumber", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "Seq"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "CreationTime", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "BillTime"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BillType", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ChangedBy", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ChangedNumber", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsReplenished", |
|
||||
table: "Set_VmiLog", |
|
||||
type: "bit", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VinCode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: false, |
|
||||
defaultValue: "", |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Configcode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CustomerPartCode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddUniqueConstraint( |
|
||||
name: "AK_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum" }); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "Id", "BillTime", "BillType", "CodeType", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, |
|
||||
values: new object[] { new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, 0, null, "VinCode", null }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropUniqueConstraint( |
|
||||
name: "AK_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BillType", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ChangedBy", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ChangedNumber", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsReplenished", |
|
||||
table: "Set_VmiLog"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Configcode", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CustomerPartCode", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "factory", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "SeqNumber"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "VinCode", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "RelationNumber"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "UniqueCode", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No6"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "SubBillType", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "DeliverBillType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "SettlementVinCode", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No5"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Seq", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No4"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "RealCode", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No3"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "ReMark", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No2"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "PartCode2", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "No1"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "Desc"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "OrderNum", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "DeliverSubBillType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "DeliverTime", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "ShippingDate"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "CustomerPartCode", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "CustomOrderNumber"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Configcode", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "CreatedBy"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "ChangedTime", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "CreationTime"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "BillTime", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "CreatedTime"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "ReMark", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "Remark"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "factory", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "SeqNumber"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "SubBillType", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "DeliverSubBillType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Seq", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "CustomOrderNumber"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "OrderNum", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "LU"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "DeliverTime", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "ShippingDate"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "BillType", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "DeliverBillType"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "BillTime", |
|
||||
table: "Set_VmiBalance", |
|
||||
newName: "CreationTime"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VinCode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)"); |
|
||||
|
|
||||
migrationBuilder.AddUniqueConstraint( |
|
||||
name: "AK_Set_VmiBalance_ErpToLoc_PartCode_LU", |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "ErpToLoc", "PartCode", "LU" }); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "Id", "CreationTime", "CustomOrderNumber", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "LU", "MatchNumber", "PartCode", "PjsNum", "Qty", "Remark", "SeqNumber", "ShippingDate", "UniqueCode", "VinCode" }, |
|
||||
values: new object[] { new Guid("cd6b8f09-2146-73d3-cade-4e832627b4f6"), new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, 0, 0, "key1", "key3", null, "key2", null, 0m, "test", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, null }); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,62 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class vmi9 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "Count", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "ChangedQty"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "BackupTime", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ConcurrencyStamp", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(40)", |
|
||||
maxLength: 40, |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "RealCode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|
||||
column: "ConcurrencyStamp", |
|
||||
value: "887ca64c266c48ac82dca90534f64225"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BackupTime", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ConcurrencyStamp", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "RealCode", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.RenameColumn( |
|
||||
name: "ChangedQty", |
|
||||
table: "Set_VmiLog", |
|
||||
newName: "Count"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,38 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class vmi10 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "HeartBeat", |
|
||||
table: "Set_JobItem", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|
||||
column: "ConcurrencyStamp", |
|
||||
value: "2cc9803a5a8e420b80134104653ecde0"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "HeartBeat", |
|
||||
table: "Set_JobItem"); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|
||||
column: "ConcurrencyStamp", |
|
||||
value: "887ca64c266c48ac82dca90534f64225"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,58 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202308070001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "InvbillNum", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "InvbillNum", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "InvbillNum", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL", |
|
||||
type: "nvarchar(50)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|
||||
column: "ConcurrencyStamp", |
|
||||
value: "2e626de3941048399abf1f76c051f8a4"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "InvbillNum", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "InvbillNum", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "InvbillNum", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|
||||
column: "ConcurrencyStamp", |
|
||||
value: "887ca64c266c48ac82dca90534f64225"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,104 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202308080001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_BBAC_PD", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
Version = table.Column<int>(type: "int", nullable: false), |
|
||||
BillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
State = table.Column<int>(type: "int", nullable: false), |
|
||||
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_BBAC_PD", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_HBPO_PD", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
Version = table.Column<int>(type: "int", nullable: false), |
|
||||
BillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
State = table.Column<int>(type: "int", nullable: false), |
|
||||
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_HBPO_PD", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_PUB_PD", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
||||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|
||||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|
||||
Version = table.Column<int>(type: "int", nullable: false), |
|
||||
BillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
State = table.Column<int>(type: "int", nullable: false), |
|
||||
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_PUB_PD", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_BBAC_PD"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_HBPO_PD"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_PUB_PD"); |
|
||||
|
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,38 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202308081 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "Cron", "HeartBeat", "IsDisabled", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[] { new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), "0 0/30 * * * ? ", null, false, false, "直供件BBAC发运同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongBBACSeSyncAppService" }); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|
||||
column: "ConcurrencyStamp", |
|
||||
value: "210607a13a294958a95ea0faddc6eb65"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4")); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|
||||
column: "ConcurrencyStamp", |
|
||||
value: "f0b58114c8bf4491b657f275bd0631b0"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,79 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202308082 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
|
||||
column: "Cron", |
|
||||
value: "0 0/10 * * * ? "); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_JobItem", |
|
||||
columns: new[] { "Id", "Cron", "HeartBeat", "IsDisabled", "IsRunning", "Name", "Service" }, |
|
||||
values: new object[,] |
|
||||
{ |
|
||||
{ new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68"), "0 0/10 * * * ? ", null, false, false, "BBAC发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BBACSeSyncAppService" }, |
|
||||
{ new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68"), "0 0/10 * * * ? ", null, false, false, "HBPO发运数据同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.HBPOSeSyncAppService" }, |
|
||||
{ new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), "0 0/10 * * * ? ", null, false, false, "直供件HBPO发运同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.ZhiGongHBPOSeSyncAppService" }, |
|
||||
{ new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), "0 0/10 * * * ? ", null, false, false, "备件发运同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.BeiSeSyncAppService" }, |
|
||||
{ new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), "0 0/10 * * * ? ", null, false, false, "印度件发运同步", "Win.Sfs.SettleAccount.Entities.BQ.Syncs.YinDuSeSyncAppService" } |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|
||||
column: "ConcurrencyStamp", |
|
||||
value: "7ee5d3ed981d4f87963af8b5654cd9df"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("d50400b0-b0d4-38d1-fcdf-b1e7ac1d3a68")); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("d6d5e1d7-9326-ceea-eed4-fb4039e7ee68")); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_JobItem", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
|
||||
column: "Cron", |
|
||||
value: "0 0/30 * * * ? "); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|
||||
column: "ConcurrencyStamp", |
|
||||
value: "210607a13a294958a95ea0faddc6eb65"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,186 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class vmi11 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropUniqueConstraint( |
|
||||
name: "AK_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VinCode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "OrderNum", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ErpToLoc", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "BillType", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "DeliverBillType", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "DeliverSubBillType", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "ProType", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "SubBillType", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "TransType", |
|
||||
table: "Set_PUB_SE_DETAIL", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|
||||
column: "ConcurrencyStamp", |
|
||||
value: "4affb77e506d43dda8bc322162fcb335"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum" }, |
|
||||
unique: true, |
|
||||
filter: "[PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "BillType", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeliverBillType", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeliverSubBillType", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ProType", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "SubBillType", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "TransType", |
|
||||
table: "Set_PUB_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "VinCode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: false, |
|
||||
defaultValue: "", |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: false, |
|
||||
defaultValue: "", |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "OrderNum", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: false, |
|
||||
defaultValue: "", |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ErpToLoc", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: false, |
|
||||
defaultValue: "", |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AddUniqueConstraint( |
|
||||
name: "AK_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum" }); |
|
||||
|
|
||||
migrationBuilder.UpdateData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|
||||
column: "ConcurrencyStamp", |
|
||||
value: "7ee5d3ed981d4f87963af8b5654cd9df"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,56 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202308091 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873")); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsHaveSeData", |
|
||||
table: "Set_HBPO_SE_EDI", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsHaveEdiData", |
|
||||
table: "Set_HBPO_SE_DETAIL", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, |
|
||||
values: new object[] { new Guid("3f870b27-55b4-470b-8c44-abb68145e3c8"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "d8fd025b2b0f4872bfa9a40f9f3df4b9", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("3f870b27-55b4-470b-8c44-abb68145e3c8")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsHaveSeData", |
|
||||
table: "Set_HBPO_SE_EDI"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsHaveEdiData", |
|
||||
table: "Set_HBPO_SE_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, |
|
||||
values: new object[] { new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "4affb77e506d43dda8bc322162fcb335", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,65 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202308092 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("3f870b27-55b4-470b-8c44-abb68145e3c8")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_PUB_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_PUB_SA"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_PUB_SA"); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, |
|
||||
values: new object[] { new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "02418a7349a942d4b3e1fe9a3968a908", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc")); |
|
||||
|
|
||||
migrationBuilder.AddColumn<Guid>( |
|
||||
name: "DeleterId", |
|
||||
table: "Set_PUB_SA", |
|
||||
type: "uniqueidentifier", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<DateTime>( |
|
||||
name: "DeletionTime", |
|
||||
table: "Set_PUB_SA", |
|
||||
type: "datetime2", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<bool>( |
|
||||
name: "IsDeleted", |
|
||||
table: "Set_PUB_SA", |
|
||||
type: "bit", |
|
||||
nullable: false, |
|
||||
defaultValue: false); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, |
|
||||
values: new object[] { new Guid("3f870b27-55b4-470b-8c44-abb68145e3c8"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "d8fd025b2b0f4872bfa9a40f9f3df4b9", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,233 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202308100001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc")); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "factory", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Configcode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_PUB_NOT_SA_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_PUB_ADJ_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ClientCode", |
|
||||
table: "Set_INVOICE_GRP", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<decimal>( |
|
||||
name: "PreTaxDiff", |
|
||||
table: "Set_INVOICE_GRP", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
defaultValue: 0m); |
|
||||
|
|
||||
migrationBuilder.AddColumn<decimal>( |
|
||||
name: "RealAmt", |
|
||||
table: "Set_INVOICE_GRP", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
defaultValue: 0m); |
|
||||
|
|
||||
migrationBuilder.AddColumn<decimal>( |
|
||||
name: "TaxDiff", |
|
||||
table: "Set_INVOICE_GRP", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
defaultValue: 0m); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_HBPO_NOT_SA_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_HBPO_ADJ_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "PartCode", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, |
|
||||
values: new object[] { new Guid("6c0cbeb6-6530-4ede-ac96-d0f294f76086"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "4d0aea6c7eb24ecf908624ef4ffc315a", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode" }, |
|
||||
unique: true, |
|
||||
filter: "[CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", |
|
||||
table: "Set_VmiBalance"); |
|
||||
|
|
||||
migrationBuilder.DeleteData( |
|
||||
table: "Set_VmiBalance", |
|
||||
keyColumn: "Id", |
|
||||
keyValue: new Guid("6c0cbeb6-6530-4ede-ac96-d0f294f76086")); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_PUB_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_PUB_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_PUB_ADJ_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ClientCode", |
|
||||
table: "Set_INVOICE_GRP"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PreTaxDiff", |
|
||||
table: "Set_INVOICE_GRP"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "RealAmt", |
|
||||
table: "Set_INVOICE_GRP"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "TaxDiff", |
|
||||
table: "Set_INVOICE_GRP"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_HBPO_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_HBPO_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_HBPO_ADJ_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_BBAC_NOT_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "PartCode", |
|
||||
table: "Set_BBAC_CAN_SA_DETAIL"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "factory", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Configcode", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "CodeType", |
|
||||
table: "Set_VmiBalance", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.InsertData( |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, |
|
||||
values: new object[] { new Guid("b6018a04-ee6d-447f-8fb8-81eb287a7ebc"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "02418a7349a942d4b3e1fe9a3968a908", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_VmiBalance_BillType_PartCode_VinCode_ErpToLoc_OrderNum", |
|
||||
table: "Set_VmiBalance", |
|
||||
columns: new[] { "BillType", "PartCode", "VinCode", "ErpToLoc", "OrderNum" }, |
|
||||
unique: true, |
|
||||
filter: "[PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue