btcpayserver/BTCPayServer.Data/Migrations/20200402065615_AddApiKeyBlob.cs

37 lines
1 KiB
C#
Raw Normal View History

2020-06-28 21:44:35 -05:00
using BTCPayServer.Data;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
namespace BTCPayServer.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
[Migration("20200402065615_AddApiKeyBlob")]
public partial class AddApiKeyBlob : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
2024-04-15 19:08:25 +09:00
migrationBuilder.DropColumn(
name: "Permissions",
table: "ApiKeys");
migrationBuilder.AddColumn<byte[]>(
name: "Blob",
table: "ApiKeys",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
2024-04-15 19:08:25 +09:00
migrationBuilder.DropColumn(
name: "Blob",
table: "ApiKeys");
migrationBuilder.AddColumn<string>(
name: "Permissions",
table: "ApiKeys",
type: "TEXT",
nullable: true);
}
}
}