using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace NetinaShop.Repository.Migrations
{
    /// <inheritdoc />
    public partial class EditOrderDelivey : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_OrderDeliveries_OrderId",
                schema: "public",
                table: "OrderDeliveries");

            migrationBuilder.CreateIndex(
                name: "IX_OrderDeliveries_OrderId",
                schema: "public",
                table: "OrderDeliveries",
                column: "OrderId",
                unique: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_OrderDeliveries_OrderId",
                schema: "public",
                table: "OrderDeliveries");

            migrationBuilder.CreateIndex(
                name: "IX_OrderDeliveries_OrderId",
                schema: "public",
                table: "OrderDeliveries",
                column: "OrderId");
        }
    }
}
