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