4 changed files with 10321 additions and 11 deletions
File diff suppressed because it is too large
@ -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); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue