mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-10 17:26:05 +01:00
40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
|
using BTCPayServer.Data;
|
|||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace BTCPayServer.Migrations
|
|||
|
{
|
|||
|
[DbContext(typeof(ApplicationDbContext))]
|
|||
|
[Migration("20240104155620_AddApprovalToApplicationUser")]
|
|||
|
public partial class AddApprovalToApplicationUser : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<bool>(
|
|||
|
name: "Approved",
|
|||
|
table: "AspNetUsers",
|
|||
|
nullable: false,
|
|||
|
defaultValue: false);
|
|||
|
|
|||
|
migrationBuilder.AddColumn<bool>(
|
|||
|
name: "RequiresApproval",
|
|||
|
table: "AspNetUsers",
|
|||
|
nullable: false,
|
|||
|
defaultValue: false);
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "Approved",
|
|||
|
table: "AspNetUsers");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "RequiresApproval",
|
|||
|
table: "AspNetUsers");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|