107 lines
3.3 KiB
C#
107 lines
3.3 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|