MinIO Service
This commit is contained in:
parent
e33c19ae8a
commit
bdd327cce2
43 changed files with 2092 additions and 1447 deletions
1183
Migrations/20230325122648_Change Document Table Def.Designer.cs
generated
Normal file
1183
Migrations/20230325122648_Change Document Table Def.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
41
Migrations/20230325122648_Change Document Table Def.cs
Normal file
41
Migrations/20230325122648_Change Document Table Def.cs
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -45,10 +45,8 @@ namespace BMA.EHR.Recruit.Service.Migrations
|
|||
.HasMaxLength(128)
|
||||
.HasColumnType("varchar(128)");
|
||||
|
||||
b.Property<string>("ObjectRefId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varchar(64)");
|
||||
b.Property<Guid>("ObjectRefId")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue