hrms-api-recruit/Migrations/20230325122648_Change Document Table Def.cs
Suphonchai Phoonsawat bdd327cce2 MinIO Service
2023-03-25 20:03:27 +07:00

41 lines
1.3 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BMA.EHR.Recruit.Service.Migrations
{
/// <inheritdoc />
public partial class ChangeDocumentTableDef : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<Guid>(
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");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
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");
}
}
}