irc-netcore-api/IRaCIS.Core.Infra.EFCore/Migrations/20241015063950_questionc.cs

44 lines
1.3 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace IRaCIS.Core.Infra.EFCore.Migrations
{
/// <inheritdoc />
public partial class questionc : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ClassifyAlgorithms",
table: "ReadingQuestionSystem",
type: "nvarchar(400)",
maxLength: 400,
nullable: false,
defaultValue: "",
comment: "分类算法");
migrationBuilder.AddColumn<Guid>(
name: "ClassifyQuestionId",
table: "ReadingQuestionSystem",
type: "uniqueidentifier",
nullable: true,
comment: "分类问题Id");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ClassifyAlgorithms",
table: "ReadingQuestionSystem");
migrationBuilder.DropColumn(
name: "ClassifyQuestionId",
table: "ReadingQuestionSystem");
}
}
}