using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class updatetableInsigniaRequestProfilefeildDocumentStatusnull : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Special", table: "InsigniaRequestProfiles", type: "varchar(50)", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "varchar(50)", oldMaxLength: 50) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "Salary", table: "InsigniaRequestProfiles", type: "double", nullable: true, oldClrType: typeof(decimal), oldType: "decimal(65,30)", oldNullable: true); migrationBuilder.AlterColumn( name: "QualificationStatus", table: "InsigniaRequestProfiles", type: "varchar(50)", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "varchar(50)", oldMaxLength: 50) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "Note", table: "InsigniaRequestProfiles", type: "text", nullable: true, oldClrType: typeof(string), oldType: "text") .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "MatchingConditions", table: "InsigniaRequestProfiles", type: "text", nullable: true, oldClrType: typeof(string), oldType: "text") .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "DocumentStatus", table: "InsigniaRequestProfiles", type: "varchar(50)", maxLength: 50, nullable: true, oldClrType: typeof(string), oldType: "varchar(50)", oldMaxLength: 50) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.UpdateData( table: "InsigniaRequestProfiles", keyColumn: "Special", keyValue: null, column: "Special", value: ""); migrationBuilder.AlterColumn( name: "Special", table: "InsigniaRequestProfiles", type: "varchar(50)", maxLength: 50, nullable: false, oldClrType: typeof(string), oldType: "varchar(50)", oldMaxLength: 50, oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "Salary", table: "InsigniaRequestProfiles", type: "decimal(65,30)", nullable: true, oldClrType: typeof(double), oldType: "double", oldNullable: true); migrationBuilder.UpdateData( table: "InsigniaRequestProfiles", keyColumn: "QualificationStatus", keyValue: null, column: "QualificationStatus", value: ""); migrationBuilder.AlterColumn( name: "QualificationStatus", table: "InsigniaRequestProfiles", type: "varchar(50)", maxLength: 50, nullable: false, oldClrType: typeof(string), oldType: "varchar(50)", oldMaxLength: 50, oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.UpdateData( table: "InsigniaRequestProfiles", keyColumn: "Note", keyValue: null, column: "Note", value: ""); migrationBuilder.AlterColumn( name: "Note", table: "InsigniaRequestProfiles", type: "text", nullable: false, oldClrType: typeof(string), oldType: "text", oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.UpdateData( table: "InsigniaRequestProfiles", keyColumn: "MatchingConditions", keyValue: null, column: "MatchingConditions", value: ""); migrationBuilder.AlterColumn( name: "MatchingConditions", table: "InsigniaRequestProfiles", type: "text", nullable: false, oldClrType: typeof(string), oldType: "text", oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.UpdateData( table: "InsigniaRequestProfiles", keyColumn: "DocumentStatus", keyValue: null, column: "DocumentStatus", value: ""); migrationBuilder.AlterColumn( name: "DocumentStatus", table: "InsigniaRequestProfiles", type: "varchar(50)", maxLength: 50, nullable: false, oldClrType: typeof(string), oldType: "varchar(50)", oldMaxLength: 50, oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); } } }