Browse Source

更新版本

master
赵新宇 2 weeks ago
parent
commit
2524ad7357
  1. 2
      API/TaskManager.EntityFramework/JobDbContext.cs
  2. 10131
      API/TaskManager.EntityFramework/Migrations/20250703092331_z202507030001z.Designer.cs
  3. 179
      API/TaskManager.EntityFramework/Migrations/20250703092331_z202507030001z.cs
  4. 20
      API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs

2
API/TaskManager.EntityFramework/JobDbContext.cs

@ -77,7 +77,7 @@ namespace TaskManager.EntityFramework
optionsBuilder.UseSqlServer(GlobalContext.SystemConfig.CustomerDb);
//optionsBuilder.UseSqlServer("Server = 192.168.1.228; Database = TaskManager; User ID = sa; Password = ChangkeTec@2021; TrustServerCertificate = True");
//optionsBuilder.UseSqlServer("Server = 192.168.1.228; Database = TaskManager; User ID = sa; Password = ChangkeTec@2021; TrustServerCertificate = True");

10131
API/TaskManager.EntityFramework/Migrations/20250703092331_z202507030001z.Designer.cs

File diff suppressed because it is too large

179
API/TaskManager.EntityFramework/Migrations/20250703092331_z202507030001z.cs

@ -0,0 +1,179 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202507030001z : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "LimitUpdateTime",
table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS",
type: "VARCHAR(19)",
maxLength: 19,
nullable: true,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "DeadLine",
table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS",
type: "VARCHAR(30)",
maxLength: 30,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10);
migrationBuilder.AlterColumn<string>(
name: "LimitUpdateTime",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "varCHAR(19)",
maxLength: 19,
nullable: true,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialOutputTime",
table: "SUPPLIER_PRO_DATA_LOGS",
type: "VARCHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<string>(
name: "MaterialInputTime",
table: "SUPPLIER_PRO_DATA_LOGS",
type: "VARCHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<string>(
name: "DateTime",
table: "SUPPLIER_PRO_DATA_LOGS",
type: "VARCHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(16)",
oldMaxLength: 16);
migrationBuilder.AlterColumn<string>(
name: "CollectTime",
table: "SUPPLIER_PRO_DATA_LOGS",
type: "VARCHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "CalibrationDate",
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn<string>(
name: "LimitUpdateTime",
table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(19)",
oldMaxLength: 19,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "DeadLine",
table: "SUPPLIER_PRO_MATERIAL_STOCK_LOGS",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(30)",
oldMaxLength: 30);
migrationBuilder.AlterColumn<string>(
name: "LimitUpdateTime",
table: "SUPPLIER_PRO_MATERIAL_STOCK",
type: "CHAR(19)",
maxLength: 19,
nullable: true,
oldClrType: typeof(string),
oldType: "varCHAR(19)",
oldMaxLength: 19,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialOutputTime",
table: "SUPPLIER_PRO_DATA_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<string>(
name: "MaterialInputTime",
table: "SUPPLIER_PRO_DATA_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<string>(
name: "DateTime",
table: "SUPPLIER_PRO_DATA_LOGS",
type: "CHAR(16)",
maxLength: 16,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn<string>(
name: "CollectTime",
table: "SUPPLIER_PRO_DATA_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(19)",
oldMaxLength: 19);
}
}
}

20
API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs

@ -3217,9 +3217,9 @@ namespace TaskManager.EntityFramework.Migrations
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
b.Property<string>("CalibrationDate")
b.Property<DateTime?>("CalibrationDate")
.IsRequired()
.HasColumnType("nvarchar(max)");
.HasColumnType("datetime2");
b.Property<string>("CalibrationDueDays")
.IsRequired()
@ -7158,15 +7158,15 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<string>("CollectTime")
.IsRequired()
.HasMaxLength(19)
.HasColumnType("CHAR");
.HasColumnType("VARCHAR");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
b.Property<string>("DateTime")
.IsRequired()
.HasMaxLength(16)
.HasColumnType("CHAR");
.HasMaxLength(19)
.HasColumnType("VARCHAR");
b.Property<string>("EmpCode")
.IsRequired()
@ -7203,12 +7203,12 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<string>("MaterialInputTime")
.IsRequired()
.HasMaxLength(19)
.HasColumnType("CHAR");
.HasColumnType("VARCHAR");
b.Property<string>("MaterialOutputTime")
.IsRequired()
.HasMaxLength(19)
.HasColumnType("CHAR");
.HasColumnType("VARCHAR");
b.Property<string>("ParentHardwareRevision")
.HasMaxLength(64)
@ -7923,7 +7923,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<string>("LimitUpdateTime")
.HasMaxLength(19)
.HasColumnType("CHAR");
.HasColumnType("varCHAR");
b.Property<bool>("ReadState")
.HasColumnType("bit");
@ -8051,7 +8051,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<string>("DeadLine")
.IsRequired()
.HasMaxLength(10)
.HasMaxLength(30)
.HasColumnType("VARCHAR");
b.Property<string>("DeviceCode")
@ -8105,7 +8105,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<string>("LimitUpdateTime")
.HasMaxLength(19)
.HasColumnType("CHAR");
.HasColumnType("VARCHAR");
b.Property<bool>("ReadState")
.HasColumnType("bit");

Loading…
Cancel
Save