mirror of
https://github.com/MAKS-IT-COM/maksit-certs-ui.git
synced 2026-05-16 12:58:11 +02:00
19 lines
604 B
C#
19 lines
604 B
C#
using FluentMigrator;
|
|
|
|
namespace MaksIT.CertsUI.Engine.FluentMigrations;
|
|
|
|
/// <summary>
|
|
/// Per-key salt for API key material (pepper is app-wide from <see cref="DomainServices.IIdentityDomainConfiguration.Pepper"/>). Empty <c>KeySalt</c> denotes legacy SHA-256-only rows.
|
|
/// </summary>
|
|
[Migration(20260419100000)]
|
|
public class AddApiKeyKeySalt : Migration {
|
|
public override void Up() {
|
|
Alter.Table("api_keys")
|
|
.AddColumn("KeySalt").AsCustom("text").NotNullable().WithDefaultValue(string.Empty);
|
|
}
|
|
|
|
public override void Down() {
|
|
Delete.Column("KeySalt").FromTable("api_keys");
|
|
}
|
|
}
|