using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
///
public partial class z20250620001 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_SINV_DATA",
type: "VarChar(30)",
maxLength: 30,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "ValidDays",
table: "SUPPLIER_PRO_MATERIAL_DATA",
type: "VARCHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_INFO_LOGS",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_INFO_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_INFO",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
migrationBuilder.AlterColumn(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE",
type: "datetime2",
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(19)",
oldMaxLength: 19);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_SINV_DATA",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(string),
oldType: "VarChar(30)",
oldMaxLength: 30);
migrationBuilder.AlterColumn(
name: "ValidDays",
table: "SUPPLIER_PRO_MATERIAL_DATA",
type: "CHAR(12)",
maxLength: 12,
nullable: false,
oldClrType: typeof(string),
oldType: "VARCHAR(12)",
oldMaxLength: 12);
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_INFO_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_INFO_DT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_INFO",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "",
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE_LOGS",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE_DT",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "DataUpdateTime",
table: "SUPPLIER_EMPLOYEE",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AlterColumn(
name: "CheckOutTime",
table: "SUPPLIER_EMPLOYEE",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
defaultValue: "",
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "CheckInTime",
table: "SUPPLIER_EMPLOYEE",
type: "CHAR(19)",
maxLength: 19,
nullable: false,
oldClrType: typeof(DateTime),
oldType: "datetime2");
}
}
}