63 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C#
		
	
	
			
		
		
	
	
			63 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C#
		
	
	
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| #nullable disable
 | |
| 
 | |
| namespace IRaCIS.Core.Infra.EFCore.Migrations
 | |
| {
 | |
|     /// <inheritdoc />
 | |
|     public partial class question202410240915 : Migration
 | |
|     {
 | |
|         /// <inheritdoc />
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.AddColumn<int>(
 | |
|                 name: "ClassifyType",
 | |
|                 table: "ReadingTableQuestionTrial",
 | |
|                 type: "int",
 | |
|                 nullable: true,
 | |
|                 comment: "分类类型");
 | |
| 
 | |
|             migrationBuilder.AddColumn<int>(
 | |
|                 name: "ClassifyType",
 | |
|                 table: "ReadingTableQuestionSystem",
 | |
|                 type: "int",
 | |
|                 nullable: true,
 | |
|                 comment: "分类类型");
 | |
| 
 | |
|             migrationBuilder.AddColumn<int>(
 | |
|                 name: "ClassifyType",
 | |
|                 table: "ReadingQuestionTrial",
 | |
|                 type: "int",
 | |
|                 nullable: true,
 | |
|                 comment: "分类类型");
 | |
| 
 | |
|             migrationBuilder.AddColumn<int>(
 | |
|                 name: "ClassifyType",
 | |
|                 table: "ReadingQuestionSystem",
 | |
|                 type: "int",
 | |
|                 nullable: true,
 | |
|                 comment: "分类类型");
 | |
|         }
 | |
| 
 | |
|         /// <inheritdoc />
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "ClassifyType",
 | |
|                 table: "ReadingTableQuestionTrial");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "ClassifyType",
 | |
|                 table: "ReadingTableQuestionSystem");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "ClassifyType",
 | |
|                 table: "ReadingQuestionTrial");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "ClassifyType",
 | |
|                 table: "ReadingQuestionSystem");
 | |
|         }
 | |
|     }
 | |
| }
 |