mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
db038723f4
* Payout Destination Handling fixes #2765 This PR: * reactivates the BIP21 support for payouts. * allows LNUrl destinations to be reusable. * allows addresses to be reused in claims as long as the other claims are in a final state * Ensure bolt amount matches the payout amount * fixes * reduce duplicate parsing of bolt * make hash the id of bolt * better bolt11 tostring * use cached payment request from lnurl
42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using BTCPayServer.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
namespace BTCPayServer.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
[Migration("20211021085011_RemovePayoutDestinationConstraint")]
|
|
public partial class RemovePayoutDestinationConstraint : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Payouts_Destination",
|
|
table: "Payouts");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Payouts_Destination_State",
|
|
table: "Payouts",
|
|
columns: new[] { "Destination", "State" });
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Payouts_Destination_State",
|
|
table: "Payouts");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Payouts_Destination",
|
|
table: "Payouts",
|
|
column: "Destination",
|
|
unique: true);
|
|
}
|
|
}
|
|
}
|