54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace IRaCIS.Core.Infra.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class systemQuestion : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "ExportIdentification",
|
|
table: "ReadingTableQuestionSystem");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ExportIdentification",
|
|
table: "ReadingQuestionSystem");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DefaultValue",
|
|
table: "ReadingTableQuestionSystem",
|
|
type: "nvarchar(400)",
|
|
maxLength: 400,
|
|
nullable: false,
|
|
defaultValue: "",
|
|
comment: "默认值");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "DefaultValue",
|
|
table: "ReadingTableQuestionSystem");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ExportIdentification",
|
|
table: "ReadingTableQuestionSystem",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "导出标识");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ExportIdentification",
|
|
table: "ReadingQuestionSystem",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "导出标识");
|
|
}
|
|
}
|
|
}
|