using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recruit.Service.Migrations
{
///
public partial class ChangeDocumentTableDef : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "ObjectRefId",
table: "Documents",
type: "char(36)",
nullable: false,
collation: "ascii_general_ci",
oldClrType: typeof(string),
oldType: "varchar(64)",
oldMaxLength: 64)
.OldAnnotation("MySql:CharSet", "utf8mb4");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "ObjectRefId",
table: "Documents",
type: "varchar(64)",
maxLength: 64,
nullable: false,
oldClrType: typeof(Guid),
oldType: "char(36)")
.Annotation("MySql:CharSet", "utf8mb4")
.OldAnnotation("Relational:Collation", "ascii_general_ci");
}
}
}