63 lines
1.9 KiB
C#
63 lines
1.9 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace CompanyManagment.EFCore.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class addcallbackurltopaymenttransaction : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "AccountNumber",
|
|
table: "PaymentTransactions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "BankAccountHolderName",
|
|
table: "PaymentTransactions");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ShebaNumber",
|
|
table: "PaymentTransactions");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "CallBackUrl",
|
|
table: "PaymentTransactions",
|
|
type: "nvarchar(500)",
|
|
maxLength: 500,
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "CallBackUrl",
|
|
table: "PaymentTransactions");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "AccountNumber",
|
|
table: "PaymentTransactions",
|
|
type: "nvarchar(25)",
|
|
maxLength: 25,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "BankAccountHolderName",
|
|
table: "PaymentTransactions",
|
|
type: "nvarchar(255)",
|
|
maxLength: 255,
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ShebaNumber",
|
|
table: "PaymentTransactions",
|
|
type: "nvarchar(30)",
|
|
maxLength: 30,
|
|
nullable: true);
|
|
}
|
|
}
|
|
}
|