gehgassi_backend/gehGassi.Persistence/Migrations/20230531111121_PaymentTransactionErrorsAdded.cs

52 lines
1.5 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace gehGassi.Persistence.Migrations
{
/// <inheritdoc />
public partial class PaymentTransactionErrorsAdded : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ErrorMessage",
table: "PaymentTransactions",
type: "nvarchar(500)",
maxLength: 500,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ErrorMessages",
table: "PaymentTransactions",
type: "nvarchar(1000)",
maxLength: 1000,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "ErrorType",
table: "PaymentTransactions",
type: "nvarchar(255)",
maxLength: 255,
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ErrorMessage",
table: "PaymentTransactions");
migrationBuilder.DropColumn(
name: "ErrorMessages",
table: "PaymentTransactions");
migrationBuilder.DropColumn(
name: "ErrorType",
table: "PaymentTransactions");
}
}
}