32 lines
910 B
C#
32 lines
910 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace CC.Yi.API.Migrations
|
|
{
|
|
public partial class yi2 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "name",
|
|
table: "student",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "name",
|
|
table: "student",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|