Files
2023-07-25 22:10:03 +03:00

37 lines
1.0 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MyOffice.Migrations.Postgres.Migrations
{
/// <inheritdoc />
public partial class CollationR : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "Accounts",
type: "text",
nullable: false,
oldClrType: typeof(string),
oldType: "text",
oldCollation: "my_ci_collation");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "Accounts",
type: "text",
nullable: false,
collation: "my_ci_collation",
oldClrType: typeof(string),
oldType: "text");
}
}
}