mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-17 12:59:25 +00:00
a3401ceedf
Add proof-based password registration, login, enrollment, and change flows, with rate limiting and encrypted recovery-key envelopes. Support explicit E2EE identity resets while preserving historical signer verification, and document and test the new recovery workflows.
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Govor.Domain.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class PreserveResetSigners : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "PreviousDeviceKeyJson",
|
|
table: "E2eeIdentityChanges",
|
|
type: "character varying(10000)",
|
|
maxLength: 10000,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "PreviousSessionId",
|
|
table: "E2eeIdentityChanges",
|
|
type: "uuid",
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "PreviousDeviceKeyJson",
|
|
table: "E2eeIdentityChanges");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "PreviousSessionId",
|
|
table: "E2eeIdentityChanges");
|
|
}
|
|
}
|
|
}
|