You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

279 lines
9.5 KiB

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");
}
}
}