using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Hutopy.Infrastructure.Migrations
{
///
public partial class AddMoreInformationToTransaction : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "Paid",
table: "UserTransactions",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "StripeBillingDetailEmail",
table: "UserTransactions",
type: "nvarchar(max)",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "StripeBillingDetailName",
table: "UserTransactions",
type: "nvarchar(max)",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "StripeChargeId",
table: "UserTransactions",
type: "nvarchar(max)",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "StripeEventId",
table: "UserTransactions",
type: "nvarchar(max)",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "StripePaymentIntent",
table: "UserTransactions",
type: "nvarchar(max)",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "StripePaymentMethod",
table: "UserTransactions",
type: "nvarchar(max)",
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn(
name: "StripeReceiptUrl",
table: "UserTransactions",
type: "nvarchar(max)",
nullable: false,
defaultValue: "");
}
///
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");
}
}
}