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.
60 lines
1.9 KiB
60 lines
1.9 KiB
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace TaskManager.EntityFramework.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class z202506200002 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "TaskName",
|
|
table: "TaskSub",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(30)",
|
|
oldMaxLength: 30,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Type",
|
|
table: "SUPPLIER_PRO_MATERIAL_DATA",
|
|
type: "VARCHAR(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(decimal),
|
|
oldType: "DECIMAL(1,0)",
|
|
oldPrecision: 1);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "TaskName",
|
|
table: "TaskSub",
|
|
type: "nvarchar(30)",
|
|
maxLength: 30,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<decimal>(
|
|
name: "Type",
|
|
table: "SUPPLIER_PRO_MATERIAL_DATA",
|
|
type: "DECIMAL(1,0)",
|
|
precision: 1,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "VARCHAR(50)",
|
|
oldMaxLength: 50);
|
|
}
|
|
}
|
|
}
|
|
|