30 changed files with 43135 additions and 452 deletions
File diff suppressed because it is too large
@ -0,0 +1,279 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace TaskManager.EntityFramework.Migrations |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
public partial class z20250620001 : Migration |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_SINV_DATA", |
||||
|
type: "VarChar(30)", |
||||
|
maxLength: 30, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "ValidDays", |
||||
|
table: "SUPPLIER_PRO_MATERIAL_DATA", |
||||
|
type: "VARCHAR(12)", |
||||
|
maxLength: 12, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(12)", |
||||
|
oldMaxLength: 12); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_INFO_LOGS", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_INFO_DT", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_INFO", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_LOGS", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "CheckOutTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_LOGS", |
||||
|
type: "datetime2", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "CheckInTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_LOGS", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_DT", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "CheckOutTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_DT", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "CheckInTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_DT", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_EMPLOYEE", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "CheckOutTime", |
||||
|
table: "SUPPLIER_EMPLOYEE", |
||||
|
type: "datetime2", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "CheckInTime", |
||||
|
table: "SUPPLIER_EMPLOYEE", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
} |
||||
|
|
||||
|
/// <inheritdoc />
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_SINV_DATA", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VarChar(30)", |
||||
|
oldMaxLength: 30); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "ValidDays", |
||||
|
table: "SUPPLIER_PRO_MATERIAL_DATA", |
||||
|
type: "CHAR(12)", |
||||
|
maxLength: 12, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(12)", |
||||
|
oldMaxLength: 12); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_INFO_LOGS", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_INFO_DT", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_INFO", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_LOGS", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CheckOutTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_LOGS", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CheckInTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_LOGS", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_DT", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CheckOutTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_DT", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CheckInTime", |
||||
|
table: "SUPPLIER_EMPLOYEE_DT", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DataUpdateTime", |
||||
|
table: "SUPPLIER_EMPLOYEE", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CheckOutTime", |
||||
|
table: "SUPPLIER_EMPLOYEE", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CheckInTime", |
||||
|
table: "SUPPLIER_EMPLOYEE", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,22 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace TaskManager.EntityFramework.Migrations |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
public partial class z202506270001 : Migration |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/// <inheritdoc />
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,267 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace TaskManager.EntityFramework.Migrations |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
public partial class z202506270002 : Migration |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "ProductionDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(16)", |
||||
|
oldMaxLength: 16); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CalibrationDueDays", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", |
||||
|
type: "VARCHAR(12)", |
||||
|
maxLength: 12, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(12)", |
||||
|
oldMaxLength: 12); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CalibrationDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "ProductionDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(16)", |
||||
|
oldMaxLength: 16); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CalibrationDueDays", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", |
||||
|
type: "VARCHAR(12)", |
||||
|
maxLength: 12, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(12)", |
||||
|
oldMaxLength: 12); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "CalibrationDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "ProductionDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(16)", |
||||
|
oldMaxLength: 16); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DeviceStatus", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "VARCHAR(30)", |
||||
|
maxLength: 30, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(16)", |
||||
|
oldMaxLength: 16); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DesignLifeValue", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(16)", |
||||
|
oldMaxLength: 16); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DesignLifeUnits", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(16)", |
||||
|
oldMaxLength: 16); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CurrentUsageCount", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(16)", |
||||
|
oldMaxLength: 16); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CalibrationDueDays", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(12)", |
||||
|
oldMaxLength: 12); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "CalibrationDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "CHAR(19)", |
||||
|
oldMaxLength: 19); |
||||
|
} |
||||
|
|
||||
|
/// <inheritdoc />
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "ProductionDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", |
||||
|
type: "CHAR(16)", |
||||
|
maxLength: 16, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CalibrationDueDays", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", |
||||
|
type: "CHAR(12)", |
||||
|
maxLength: 12, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(12)", |
||||
|
oldMaxLength: 12); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CalibrationDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "ProductionDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", |
||||
|
type: "CHAR(16)", |
||||
|
maxLength: 16, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CalibrationDueDays", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", |
||||
|
type: "CHAR(12)", |
||||
|
maxLength: 12, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(12)", |
||||
|
oldMaxLength: 12); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CalibrationDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "ProductionDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "CHAR(16)", |
||||
|
maxLength: 16, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DeviceStatus", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "VARCHAR(16)", |
||||
|
maxLength: 16, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(30)", |
||||
|
oldMaxLength: 30); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DesignLifeValue", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "VARCHAR(16)", |
||||
|
maxLength: 16, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(32)", |
||||
|
oldMaxLength: 32); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "DesignLifeUnits", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "VARCHAR(16)", |
||||
|
maxLength: 16, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(32)", |
||||
|
oldMaxLength: 32); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CurrentUsageCount", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "VARCHAR(16)", |
||||
|
maxLength: 16, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(32)", |
||||
|
oldMaxLength: 32); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CalibrationDueDays", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "CHAR(12)", |
||||
|
maxLength: 12, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "VARCHAR(32)", |
||||
|
oldMaxLength: 32); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "CalibrationDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,35 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace TaskManager.EntityFramework.Migrations |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
public partial class z202506270003 : Migration |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<DateTime>( |
||||
|
name: "ProductionDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", |
||||
|
type: "datetime2", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
} |
||||
|
|
||||
|
/// <inheritdoc />
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "ProductionDate", |
||||
|
table: "SUPPLIER_PRO_PROCESS_EQUIPMENT_LOGS", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(DateTime), |
||||
|
oldType: "datetime2"); |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
Loading…
Reference in new issue