#27 added more info to transaction + callback from stripe
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Hutopy.Infrastructure.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddMoreInformationToTransaction : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "Paid",
|
||||
table: "UserTransactions",
|
||||
type: "bit",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "StripeBillingDetailEmail",
|
||||
table: "UserTransactions",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "StripeBillingDetailName",
|
||||
table: "UserTransactions",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "StripeChargeId",
|
||||
table: "UserTransactions",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "StripeEventId",
|
||||
table: "UserTransactions",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "StripePaymentIntent",
|
||||
table: "UserTransactions",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "StripePaymentMethod",
|
||||
table: "UserTransactions",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "StripeReceiptUrl",
|
||||
table: "UserTransactions",
|
||||
type: "nvarchar(max)",
|
||||
nullable: false,
|
||||
defaultValue: "");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Paid",
|
||||
table: "UserTransactions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "StripeBillingDetailEmail",
|
||||
table: "UserTransactions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "StripeBillingDetailName",
|
||||
table: "UserTransactions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "StripeChargeId",
|
||||
table: "UserTransactions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "StripeEventId",
|
||||
table: "UserTransactions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "StripePaymentIntent",
|
||||
table: "UserTransactions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "StripePaymentMethod",
|
||||
table: "UserTransactions");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "StripeReceiptUrl",
|
||||
table: "UserTransactions");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user