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.
126 lines
4.0 KiB
126 lines
4.0 KiB
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace TaskManager.EntityFramework.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class z202506090009 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Version",
|
|
table: "TaskLogs",
|
|
type: "nvarchar(30)",
|
|
maxLength: 30,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(20)",
|
|
oldMaxLength: 20,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Type",
|
|
table: "TaskLogs",
|
|
type: "nvarchar(30)",
|
|
maxLength: 30,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(20)",
|
|
oldMaxLength: 20,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "TaskName",
|
|
table: "TaskLogs",
|
|
type: "nvarchar(30)",
|
|
maxLength: 30,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(20)",
|
|
oldMaxLength: 20,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Path",
|
|
table: "TaskLogs",
|
|
type: "nvarchar(30)",
|
|
maxLength: 30,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(20)",
|
|
oldMaxLength: 20,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Info",
|
|
table: "TaskLogs",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(20)",
|
|
oldMaxLength: 20,
|
|
oldNullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Version",
|
|
table: "TaskLogs",
|
|
type: "nvarchar(20)",
|
|
maxLength: 20,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(30)",
|
|
oldMaxLength: 30,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Type",
|
|
table: "TaskLogs",
|
|
type: "nvarchar(20)",
|
|
maxLength: 20,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(30)",
|
|
oldMaxLength: 30,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "TaskName",
|
|
table: "TaskLogs",
|
|
type: "nvarchar(20)",
|
|
maxLength: 20,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(30)",
|
|
oldMaxLength: 30,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Path",
|
|
table: "TaskLogs",
|
|
type: "nvarchar(20)",
|
|
maxLength: 20,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(30)",
|
|
oldMaxLength: 30,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Info",
|
|
table: "TaskLogs",
|
|
type: "nvarchar(20)",
|
|
maxLength: 20,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|
|
|