mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
a295e123bc
* Migrate Payouts to new format * Rename PayoutData column to PayoutMethodId
30 lines
853 B
C#
30 lines
853 B
C#
using BTCPayServer.Data;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BTCPayServer.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
[Migration("20240520042729_payoutsmigration")]
|
|
public partial class payoutsmigration : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Currency",
|
|
table: "Payouts",
|
|
type: "text",
|
|
nullable: true);
|
|
migrationBuilder.RenameColumn("PaymentMethodId", "Payouts", "PayoutMethodId");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
}
|
|
}
|
|
}
|