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.
159 lines
5.2 KiB
159 lines
5.2 KiB
5 days ago
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
|
||
|
#nullable disable
|
||
|
|
||
|
namespace TaskManager.EntityFramework.Migrations
|
||
|
{
|
||
|
/// <inheritdoc />
|
||
|
public partial class z20250610000240002 : Migration
|
||
|
{
|
||
|
/// <inheritdoc />
|
||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||
|
{
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "Url",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(500)",
|
||
|
maxLength: 500,
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(max)",
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "TaskName",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(200)",
|
||
|
maxLength: 200,
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(max)",
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "TableName",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(100)",
|
||
|
maxLength: 100,
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(max)",
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "Module",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(400)",
|
||
|
maxLength: 400,
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(max)",
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "Corn",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(400)",
|
||
|
maxLength: 400,
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(max)",
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "Client",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(50)",
|
||
|
maxLength: 50,
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(max)",
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "Api",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(400)",
|
||
|
maxLength: 400,
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(max)",
|
||
|
oldNullable: true);
|
||
|
}
|
||
|
|
||
|
/// <inheritdoc />
|
||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||
|
{
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "Url",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(max)",
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(500)",
|
||
|
oldMaxLength: 500,
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "TaskName",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(max)",
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(200)",
|
||
|
oldMaxLength: 200,
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "TableName",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(max)",
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(100)",
|
||
|
oldMaxLength: 100,
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "Module",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(max)",
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(400)",
|
||
|
oldMaxLength: 400,
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "Corn",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(max)",
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(400)",
|
||
|
oldMaxLength: 400,
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "Client",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(max)",
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(50)",
|
||
|
oldMaxLength: 50,
|
||
|
oldNullable: true);
|
||
|
|
||
|
migrationBuilder.AlterColumn<string>(
|
||
|
name: "Api",
|
||
|
table: "TaskConifgure",
|
||
|
type: "nvarchar(max)",
|
||
|
nullable: true,
|
||
|
oldClrType: typeof(string),
|
||
|
oldType: "nvarchar(400)",
|
||
|
oldMaxLength: 400,
|
||
|
oldNullable: true);
|
||
|
}
|
||
|
}
|
||
|
}
|