mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
Run ef_migrate.ps1 (#2892)
- React to entity namespace changes - Add missing migration for MySql
This commit is contained in:
25
util/MySqlMigrations/Migrations/20230428130731_EFUpdate.cs
Normal file
25
util/MySqlMigrations/Migrations/20230428130731_EFUpdate.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Bit.MySqlMigrations.Migrations;
|
||||
|
||||
public partial class EFUpdate : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "RequestFingerprint",
|
||||
table: "AuthRequest");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "RequestFingerprint",
|
||||
table: "AuthRequest",
|
||||
type: "longtext",
|
||||
nullable: true)
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user