using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace CMSMicroservice.Infrastructure.Persistence.Migrations
{
    /// <inheritdoc />
    public partial class AddDiscountBalanceToWalletChangeLog : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<long>(
                name: "ChangeDiscountValue",
                schema: "CMS",
                table: "UserWalletChangeLogs",
                type: "bigint",
                nullable: false,
                defaultValue: 0L);

            migrationBuilder.AddColumn<long>(
                name: "CurrentDiscountBalance",
                schema: "CMS",
                table: "UserWalletChangeLogs",
                type: "bigint",
                nullable: false,
                defaultValue: 0L);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ChangeDiscountValue",
                schema: "CMS",
                table: "UserWalletChangeLogs");

            migrationBuilder.DropColumn(
                name: "CurrentDiscountBalance",
                schema: "CMS",
                table: "UserWalletChangeLogs");
        }
    }
}
