using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Infrastructure.Migrations.AppDb
{
    /// <inheritdoc />
    public partial class AllowMultipleSettlementAccounts : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_SettlementAccount_ChannelID_MemberID",
                table: "SettlementAccount");

            migrationBuilder.CreateIndex(
                name: "IX_SettlementAccount_ChannelID_MemberID",
                table: "SettlementAccount",
                columns: new[] { "ChannelID", "MemberID" });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_SettlementAccount_ChannelID_MemberID",
                table: "SettlementAccount");

            migrationBuilder.CreateIndex(
                name: "IX_SettlementAccount_ChannelID_MemberID",
                table: "SettlementAccount",
                columns: new[] { "ChannelID", "MemberID" },
                unique: true);
        }
    }
}
