using System.Collections.Generic; using Commerce.Contracts.DTOs; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Commerce.Domain.Migrations { /// public partial class MakeTechnicalDetailsNullable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn>>( name: "TechnicalDetails", table: "Products", type: "jsonb", nullable: true, oldClrType: typeof(Dictionary>), oldType: "jsonb"); migrationBuilder.AlterColumn>>( name: "TechnicalDetails", table: "Categories", type: "jsonb", nullable: true, oldClrType: typeof(Dictionary>), oldType: "jsonb"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn>>( name: "TechnicalDetails", table: "Products", type: "jsonb", nullable: false, oldClrType: typeof(Dictionary>), oldType: "jsonb", oldNullable: true); migrationBuilder.AlterColumn>>( name: "TechnicalDetails", table: "Categories", type: "jsonb", nullable: false, oldClrType: typeof(Dictionary>), oldType: "jsonb", oldNullable: true); } } }