151 lines
4.8 KiB
C#
151 lines
4.8 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BMA.EHR.Infrastructure.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class addtableRetirementQuestionnaireQuestion1 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Comment",
|
|
table: "RetirementQuestions",
|
|
type: "longtext",
|
|
nullable: true,
|
|
comment: "ความคิดเห็น")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Score1",
|
|
table: "RetirementQuestions",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "คะแนนข้อ 1");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Score10",
|
|
table: "RetirementQuestions",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "คะแนนข้อ 10");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Score2",
|
|
table: "RetirementQuestions",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "คะแนนข้อ 2");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Score3",
|
|
table: "RetirementQuestions",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "คะแนนข้อ 3");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Score4",
|
|
table: "RetirementQuestions",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "คะแนนข้อ 4");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Score5",
|
|
table: "RetirementQuestions",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "คะแนนข้อ 5");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Score6",
|
|
table: "RetirementQuestions",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "คะแนนข้อ 6");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Score7",
|
|
table: "RetirementQuestions",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "คะแนนข้อ 7");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Score8",
|
|
table: "RetirementQuestions",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "คะแนนข้อ 8");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Score9",
|
|
table: "RetirementQuestions",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "คะแนนข้อ 9");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ScoreTotal",
|
|
table: "RetirementQuestions",
|
|
type: "int",
|
|
nullable: true,
|
|
comment: "คะแนนรวม");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Comment",
|
|
table: "RetirementQuestions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Score1",
|
|
table: "RetirementQuestions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Score10",
|
|
table: "RetirementQuestions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Score2",
|
|
table: "RetirementQuestions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Score3",
|
|
table: "RetirementQuestions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Score4",
|
|
table: "RetirementQuestions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Score5",
|
|
table: "RetirementQuestions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Score6",
|
|
table: "RetirementQuestions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Score7",
|
|
table: "RetirementQuestions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Score8",
|
|
table: "RetirementQuestions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Score9",
|
|
table: "RetirementQuestions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ScoreTotal",
|
|
table: "RetirementQuestions");
|
|
}
|
|
}
|
|
}
|