using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace songrequests_blazor.Migrations
{
    /// <inheritdoc />
    public partial class AddUniqueKeyToSongs : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_Songs_Library_ID",
                table: "Songs");

            migrationBuilder.UpdateData(
                table: "AspNetUsers",
                keyColumn: "Id",
                keyValue: "5c2511d0-6a08-4950-babd-d107996749ba",
                columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" },
                values: new object[] { "0f427274-c406-4fb7-a80f-91fa4fd57cf4", "AQAAAAIAAYagAAAAEFZWcvwhuJu9C7uVvzbsmUQae3r6sY0py3xFCYortc/Hrb+P1p1fYsCBWp8PRGoIrA==", "8fddb9be-4f1a-411b-9754-64eaef1bd3a3" });

            migrationBuilder.CreateIndex(
                name: "IX_Songs_Library_ID_Uri",
                table: "Songs",
                columns: new[] { "Library_ID", "Uri" },
                unique: true);
        }

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

            migrationBuilder.UpdateData(
                table: "AspNetUsers",
                keyColumn: "Id",
                keyValue: "5c2511d0-6a08-4950-babd-d107996749ba",
                columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" },
                values: new object[] { "704e6e3c-2a36-4fda-b08b-eee6df96c7bd", "AQAAAAIAAYagAAAAEOdhfzdMz0IiXP6IAztlTIpZmIu/kd+Oe6NOtPF4qDu+d22cPQt6qlepPZxXL5jj4g==", "24955bec-23c8-4bc6-bef3-e7d848e2b6ec" });

            migrationBuilder.CreateIndex(
                name: "IX_Songs_Library_ID",
                table: "Songs",
                column: "Library_ID");
        }
    }
}
