revert 1a360447cd54ae92c981323e5895602f8e24f17f
revert Added the Payment details in tenant subscription table
This commit is contained in:
parent
bd839b12f9
commit
4e171e8ca3
File diff suppressed because one or more lines are too long
@ -1,52 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
namespace Marco.Pms.DataAccess.Migrations
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
public partial class Added_PaymentDetails_In_TenantSubscription_Table : Migration
|
|
||||||
{
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.AddColumn<Guid>(
|
|
||||||
name: "PaymentDetailId",
|
|
||||||
table: "TenantSubscriptions",
|
|
||||||
type: "char(36)",
|
|
||||||
nullable: false,
|
|
||||||
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
|
|
||||||
collation: "ascii_general_ci");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_TenantSubscriptions_PaymentDetailId",
|
|
||||||
table: "TenantSubscriptions",
|
|
||||||
column: "PaymentDetailId");
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
|
||||||
name: "FK_TenantSubscriptions_PaymentDetails_PaymentDetailId",
|
|
||||||
table: "TenantSubscriptions",
|
|
||||||
column: "PaymentDetailId",
|
|
||||||
principalTable: "PaymentDetails",
|
|
||||||
principalColumn: "Id",
|
|
||||||
onDelete: ReferentialAction.Cascade);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_TenantSubscriptions_PaymentDetails_PaymentDetailId",
|
|
||||||
table: "TenantSubscriptions");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_TenantSubscriptions_PaymentDetailId",
|
|
||||||
table: "TenantSubscriptions");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "PaymentDetailId",
|
|
||||||
table: "TenantSubscriptions");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -4706,9 +4706,6 @@ namespace Marco.Pms.DataAccess.Migrations
|
|||||||
b.Property<DateTime>("NextBillingDate")
|
b.Property<DateTime>("NextBillingDate")
|
||||||
.HasColumnType("datetime(6)");
|
.HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<Guid>("PaymentDetailId")
|
|
||||||
.HasColumnType("char(36)");
|
|
||||||
|
|
||||||
b.Property<Guid>("PlanId")
|
b.Property<Guid>("PlanId")
|
||||||
.HasColumnType("char(36)");
|
.HasColumnType("char(36)");
|
||||||
|
|
||||||
@ -4733,8 +4730,6 @@ namespace Marco.Pms.DataAccess.Migrations
|
|||||||
|
|
||||||
b.HasIndex("CurrencyId");
|
b.HasIndex("CurrencyId");
|
||||||
|
|
||||||
b.HasIndex("PaymentDetailId");
|
|
||||||
|
|
||||||
b.HasIndex("PlanId");
|
b.HasIndex("PlanId");
|
||||||
|
|
||||||
b.HasIndex("StatusId");
|
b.HasIndex("StatusId");
|
||||||
@ -6662,12 +6657,6 @@ namespace Marco.Pms.DataAccess.Migrations
|
|||||||
.OnDelete(DeleteBehavior.Cascade)
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
b.HasOne("Marco.Pms.Model.PaymentGetway.PaymentDetail", "PaymentDetail")
|
|
||||||
.WithMany()
|
|
||||||
.HasForeignKey("PaymentDetailId")
|
|
||||||
.OnDelete(DeleteBehavior.Cascade)
|
|
||||||
.IsRequired();
|
|
||||||
|
|
||||||
b.HasOne("Marco.Pms.Model.TenantModels.SubscriptionPlanDetails", "Plan")
|
b.HasOne("Marco.Pms.Model.TenantModels.SubscriptionPlanDetails", "Plan")
|
||||||
.WithMany()
|
.WithMany()
|
||||||
.HasForeignKey("PlanId")
|
.HasForeignKey("PlanId")
|
||||||
@ -6694,8 +6683,6 @@ namespace Marco.Pms.DataAccess.Migrations
|
|||||||
|
|
||||||
b.Navigation("Currency");
|
b.Navigation("Currency");
|
||||||
|
|
||||||
b.Navigation("PaymentDetail");
|
|
||||||
|
|
||||||
b.Navigation("Plan");
|
b.Navigation("Plan");
|
||||||
|
|
||||||
b.Navigation("Status");
|
b.Navigation("Status");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user