mirror of
https://github.com/RedWizardsLab/EchoHub.git
synced 2026-09-05 23:34:09 +02:00
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace EchoHub.Server.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddChannelEncryptionEnvelope : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "EncryptionSalt",
|
|
table: "Channels",
|
|
type: "TEXT",
|
|
maxLength: 64,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "WrappedRoomKey",
|
|
table: "Channels",
|
|
type: "TEXT",
|
|
maxLength: 200,
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "EncryptionSalt",
|
|
table: "Channels");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "WrappedRoomKey",
|
|
table: "Channels");
|
|
}
|
|
}
|
|
}
|