37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Project.Web.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class vierte : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "CATEGORY_NAME",
|
|
schema: "dbo",
|
|
table: "CATEGORY",
|
|
type: "nvarchar(max)",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "CATEGORY_NAME",
|
|
schema: "dbo",
|
|
table: "CATEGORY",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)");
|
|
}
|
|
}
|
|
}
|