report 1-4 เำิม่หมายเหตุแนวนอน
This commit is contained in:
parent
5530c2f9e4
commit
2da120f958
32 changed files with 51300 additions and 13 deletions
|
|
@ -0,0 +1,151 @@
|
|||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue