Administrator
3 years ago
58 changed files with 17969 additions and 217281 deletions
File diff suppressed because one or more lines are too long
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,80 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202108300001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_MaterialRelationshipDetail", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Version = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CustomerCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ErpMaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
MaterialDesc = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
MaterialProperty = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SettleMaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ShipMaterailCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
AppraisalCategory = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Qty = table.Column<decimal>(type: "decimal(18,2)", 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), |
|
||||
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Enabled = table.Column<bool>(type: "bit", nullable: false), |
|
||||
Remark = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_MaterialRelationshipDetail", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_MaterialRelationshipVersion", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Year = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Period = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Version = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CustomerCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Factory = 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), |
|
||||
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Enabled = table.Column<bool>(type: "bit", nullable: false), |
|
||||
Remark = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_MaterialRelationshipVersion", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_MaterialRelationshipDetail"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_MaterialRelationshipVersion"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,95 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _201209010001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_settle_version", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Year = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false), |
|
||||
Period = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false), |
|
||||
Version = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false), |
|
||||
CustomerCode = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true), |
|
||||
Factory = 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_settle_version", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_settlement_part", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Year = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true), |
|
||||
Period = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true), |
|
||||
CustomerCode = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true), |
|
||||
Factory = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true), |
|
||||
Model = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Version = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true), |
|
||||
SettlementPartCode = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false), |
|
||||
SettlementPartDesc = table.Column<string>(type: "nvarchar(2048)", maxLength: 2048, nullable: true), |
|
||||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Uom = 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_settlement_part", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_settle_version_Version", |
|
||||
table: "Set_settle_version", |
|
||||
column: "Version", |
|
||||
unique: true, |
|
||||
filter: "IsDeleted=0"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_settlement_part_Period_CustomerCode_Version_SettlementPartCode", |
|
||||
table: "Set_settlement_part", |
|
||||
columns: new[] { "Period", "CustomerCode", "Version", "SettlementPartCode" }, |
|
||||
unique: true, |
|
||||
filter: "IsDeleted=0"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_settle_version"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_settlement_part"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,39 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202109010002 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_Set_InvoiceVersion", |
|
||||
table: "Set_InvoiceVersion"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "Set_InvoiceVersion", |
|
||||
newName: "Set_settlement_part_version"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_Set_settlement_part_version", |
|
||||
table: "Set_settlement_part_version", |
|
||||
column: "Id"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropPrimaryKey( |
|
||||
name: "PK_Set_settlement_part_version", |
|
||||
table: "Set_settlement_part_version"); |
|
||||
|
|
||||
migrationBuilder.RenameTable( |
|
||||
name: "Set_settlement_part_version", |
|
||||
newName: "Set_InvoiceVersion"); |
|
||||
|
|
||||
migrationBuilder.AddPrimaryKey( |
|
||||
name: "PK_Set_InvoiceVersion", |
|
||||
table: "Set_InvoiceVersion", |
|
||||
column: "Id"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
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 _202109020001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_InvoiceVersion", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Year = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Period = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Version = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CustomerCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Factory = 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(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_InvoiceVersion", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_InvoiceVersion"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,61 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _20210908 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_item_invoice_price", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Year = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true), |
|
||||
Period = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true), |
|
||||
Version = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true), |
|
||||
Factory = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: true), |
|
||||
MaterialCode = table.Column<string>(type: "nvarchar(36)", maxLength: 36, nullable: false), |
|
||||
MaterialDesc = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
UM = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Sales = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
SubAcct = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
CC = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Backorder = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
||||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
ExtendedPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
ExtendedMargin = 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), |
|
||||
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_item_invoice_price", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_item_invoice_price_Period_Version_MaterialCode", |
|
||||
table: "Set_item_invoice_price", |
|
||||
columns: new[] { "Period", "Version", "MaterialCode" }, |
|
||||
unique: true, |
|
||||
filter: "IsDeleted=0"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_item_invoice_price"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
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 _2021090801 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_item_invoice_price_version", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Year = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Period = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Version = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CustomerCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Factory = 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(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_item_invoice_price_version", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_item_invoice_price_version"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,34 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class data0902 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ErpMaterialCode", |
|
||||
table: "Set_fis", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "SettleState", |
|
||||
table: "Set_fis", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ErpMaterialCode", |
|
||||
table: "Set_fis"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "SettleState", |
|
||||
table: "Set_fis"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,75 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202109110001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", |
|
||||
table: "Set_fis"); |
|
||||
|
|
||||
migrationBuilder.AddColumn<decimal>( |
|
||||
name: "DiffQty", |
|
||||
table: "Set_InvoiceSettledDiff", |
|
||||
type: "decimal(18,2)", |
|
||||
nullable: false, |
|
||||
defaultValue: 0m); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Version", |
|
||||
table: "Set_InvoiceSettledDiff", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "ErpMaterialCode", |
|
||||
table: "Set_fis_extend", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<int>( |
|
||||
name: "SettleState", |
|
||||
table: "Set_fis_extend", |
|
||||
type: "int", |
|
||||
nullable: false, |
|
||||
defaultValue: 0); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", |
|
||||
table: "Set_fis", |
|
||||
columns: new[] { "ChassisNumber2", "Version", "Model", "ItemCode" }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", |
|
||||
table: "Set_fis"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "DiffQty", |
|
||||
table: "Set_InvoiceSettledDiff"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Version", |
|
||||
table: "Set_InvoiceSettledDiff"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "ErpMaterialCode", |
|
||||
table: "Set_fis_extend"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "SettleState", |
|
||||
table: "Set_fis_extend"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_fis_ChassisNumber2_Version_Model_ItemCode", |
|
||||
table: "Set_fis", |
|
||||
columns: new[] { "ChassisNumber2", "Version", "Model", "ItemCode" }, |
|
||||
unique: true, |
|
||||
filter: "[ChassisNumber2] IS NOT NULL AND [Model] IS NOT NULL"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,93 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202109230001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Model", |
|
||||
table: "Set_fis", |
|
||||
type: "nvarchar(36)", |
|
||||
maxLength: 36, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "KENNCode", |
|
||||
table: "Set_fis", |
|
||||
type: "nvarchar(36)", |
|
||||
maxLength: 36, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ErpMaterialCode", |
|
||||
table: "Set_fis", |
|
||||
type: "nvarchar(36)", |
|
||||
maxLength: 36, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ChassisNumber2", |
|
||||
table: "Set_fis", |
|
||||
type: "nvarchar(36)", |
|
||||
maxLength: 36, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(450)", |
|
||||
oldNullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Model", |
|
||||
table: "Set_fis", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(36)", |
|
||||
oldMaxLength: 36, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "KENNCode", |
|
||||
table: "Set_fis", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(36)", |
|
||||
oldMaxLength: 36, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ErpMaterialCode", |
|
||||
table: "Set_fis", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(36)", |
|
||||
oldMaxLength: 36, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "ChassisNumber2", |
|
||||
table: "Set_fis", |
|
||||
type: "nvarchar(450)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(36)", |
|
||||
oldMaxLength: 36, |
|
||||
oldNullable: true); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,57 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202109230003 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "YearKennCode", |
|
||||
table: "Set_prebatch", |
|
||||
type: "nvarchar(36)", |
|
||||
maxLength: 36, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(36)", |
|
||||
oldMaxLength: 36); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "CarCode", |
|
||||
table: "Set_prebatch", |
|
||||
type: "nvarchar(36)", |
|
||||
maxLength: 36, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(36)", |
|
||||
oldMaxLength: 36); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "YearKennCode", |
|
||||
table: "Set_prebatch", |
|
||||
type: "nvarchar(36)", |
|
||||
maxLength: 36, |
|
||||
nullable: false, |
|
||||
defaultValue: "", |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(36)", |
|
||||
oldMaxLength: 36, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "CarCode", |
|
||||
table: "Set_prebatch", |
|
||||
type: "nvarchar(36)", |
|
||||
maxLength: 36, |
|
||||
nullable: false, |
|
||||
defaultValue: "", |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(36)", |
|
||||
oldMaxLength: 36, |
|
||||
oldNullable: true); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,24 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class data20190928 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Year", |
|
||||
table: "Set_prebatch", |
|
||||
type: "nvarchar(36)", |
|
||||
maxLength: 36, |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Year", |
|
||||
table: "Set_prebatch"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,55 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _2021093001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_SettlementPakAndSpareParts", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Period = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ApplicableFunction = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SettlementPartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|
||||
SettlementPartDesc = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ErpSparePartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ErpSparePartName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PartType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
QADCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SupplierCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SupplierName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
ProductLine = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PerCarNum = table.Column<decimal>(type: "decimal(18,2)", maxLength: 50, nullable: false), |
|
||||
Price = table.Column<decimal>(type: "decimal(18,2)", maxLength: 50, nullable: false), |
|
||||
SupplyProportion = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
QuantityPrice = table.Column<decimal>(type: "decimal(18,2)", maxLength: 50, 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), |
|
||||
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_SettlementPakAndSpareParts", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_SettlementPakAndSpareParts"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
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 _2021100801 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_SettlementCrossReference", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Period = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|
||||
Model = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Factory = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PartType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SettlementMaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|
||||
BomMaterialCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false), |
|
||||
MaterialDesc = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SupplierCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SupplierDesc = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Buyer = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Version = 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_SettlementCrossReference", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_SettlementCrossReference_Period_SettlementMaterialCode_BomMaterialCode", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
columns: new[] { "Period", "SettlementMaterialCode", "BomMaterialCode" }, |
|
||||
unique: true, |
|
||||
filter: "IsDeleted=0"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_SettlementCrossReference"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,23 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _2021100802 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Version", |
|
||||
table: "Set_SettlementPakAndSpareParts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Version", |
|
||||
table: "Set_SettlementPakAndSpareParts"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,126 +0,0 @@ |
|||||
using System; |
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _2021100901 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Version", |
|
||||
table: "Set_SettlementPakAndSpareParts", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CustomerCode", |
|
||||
table: "Set_SettlementPakAndSpareParts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Version", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(max)", |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_SettlementCrossReference_Version", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Year = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Period = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Version = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CustomerCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Factory = 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(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_SettlementCrossReference_Version", x => x.Id); |
|
||||
}); |
|
||||
|
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_SettlementPakAndSpareParts_Version", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Year = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Period = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Version = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
CustomerCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Factory = 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(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_SettlementPakAndSpareParts_Version", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_SettlementCrossReference_Version"); |
|
||||
|
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_SettlementPakAndSpareParts_Version"); |
|
||||
|
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CustomerCode", |
|
||||
table: "Set_SettlementPakAndSpareParts"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Version", |
|
||||
table: "Set_SettlementPakAndSpareParts", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Version", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,24 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _2021100902 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "CustomerCode", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "CustomerCode", |
|
||||
table: "Set_SettlementCrossReference"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,23 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _2021100900012 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Model", |
|
||||
table: "Set_SettlementPakAndSpareParts", |
|
||||
type: "nvarchar(50)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Model", |
|
||||
table: "Set_SettlementPakAndSpareParts"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,17 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202110100001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
} |
|
||||
} |
|
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 _202110100002 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateTable( |
|
||||
name: "Set_SecMatchBase", |
|
||||
columns: table => new |
|
||||
{ |
|
||||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Version = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Index = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Factory = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Model = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
PartType = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SettleMentPartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
MaterialPartCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
MaterialDesc = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SupplierCode = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SupplierName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
UsedNumber = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
SupplyProportion = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Buyer = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
||||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
SettlementPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
DiffPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
SettlementNumber = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
TheoreticalSettlementNumber = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
RealSettlementNumber = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
RealSettlementPrice = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
IsDiffNumber = table.Column<bool>(type: "bit", nullable: false), |
|
||||
DiffAmount = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|
||||
Remark = 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), |
|
||||
BranchId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
||||
Enabled = table.Column<bool>(type: "bit", nullable: false) |
|
||||
}, |
|
||||
constraints: table => |
|
||||
{ |
|
||||
table.PrimaryKey("PK_Set_SecMatchBase", x => x.Id); |
|
||||
}); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropTable( |
|
||||
name: "Set_SecMatchBase"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,89 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _202110110001 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "SupplierDesc", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
type: "nvarchar(128)", |
|
||||
maxLength: 128, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "UsedNumber", |
|
||||
table: "Set_SecMatchBase", |
|
||||
type: "decimal(18,2)", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: 0m, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<decimal>( |
|
||||
name: "SupplyProportion", |
|
||||
table: "Set_SecMatchBase", |
|
||||
type: "decimal(18,2)", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: 0m, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "IsSettle", |
|
||||
table: "Set_SecMatchBase", |
|
||||
type: "nvarchar(max)", |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "IsSettle", |
|
||||
table: "Set_SecMatchBase"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "SupplierDesc", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(128)", |
|
||||
oldMaxLength: 128, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "UsedNumber", |
|
||||
table: "Set_SecMatchBase", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)", |
|
||||
oldMaxLength: 50); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "SupplyProportion", |
|
||||
table: "Set_SecMatchBase", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(decimal), |
|
||||
oldType: "decimal(18,2)", |
|
||||
oldMaxLength: 50); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,68 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _20211012 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Version", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: "", |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Period", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50); |
|
||||
|
|
||||
migrationBuilder.AddColumn<string>( |
|
||||
name: "Year", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropColumn( |
|
||||
name: "Year", |
|
||||
table: "Set_SettlementCrossReference"); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Version", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: true, |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50); |
|
||||
|
|
||||
migrationBuilder.AlterColumn<string>( |
|
||||
name: "Period", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
type: "nvarchar(50)", |
|
||||
maxLength: 50, |
|
||||
nullable: false, |
|
||||
defaultValue: "", |
|
||||
oldClrType: typeof(string), |
|
||||
oldType: "nvarchar(50)", |
|
||||
oldMaxLength: 50, |
|
||||
oldNullable: true); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
@ -1,35 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace Win.Sfs.SettleAccount.Migrations |
|
||||
{ |
|
||||
public partial class _2021101201 : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_SettlementCrossReference_Period_SettlementMaterialCode_BomMaterialCode", |
|
||||
table: "Set_SettlementCrossReference"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_SettlementCrossReference_Version_SettlementMaterialCode_BomMaterialCode", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
columns: new[] { "Version", "SettlementMaterialCode", "BomMaterialCode" }, |
|
||||
unique: true, |
|
||||
filter: "IsDeleted=0"); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_Set_SettlementCrossReference_Version_SettlementMaterialCode_BomMaterialCode", |
|
||||
table: "Set_SettlementCrossReference"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_Set_SettlementCrossReference_Period_SettlementMaterialCode_BomMaterialCode", |
|
||||
table: "Set_SettlementCrossReference", |
|
||||
columns: new[] { "Period", "SettlementMaterialCode", "BomMaterialCode" }, |
|
||||
unique: true, |
|
||||
filter: "IsDeleted=0"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
File diff suppressed because it is too large
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue