Initial commit - ECommerce project
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
using System.Collections.Generic;
|
||||
using Commerce.Domain.Entities;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Commerce.Domain.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class QueryableTranslations : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Translations",
|
||||
table: "Products",
|
||||
type: "jsonb",
|
||||
nullable: true,
|
||||
oldClrType: typeof(List<ProductTranslation>),
|
||||
oldType: "jsonb");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Translations",
|
||||
table: "Categories",
|
||||
type: "jsonb",
|
||||
nullable: true,
|
||||
oldClrType: typeof(List<CategoryTranslation>),
|
||||
oldType: "jsonb");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<List<ProductTranslation>>(
|
||||
name: "Translations",
|
||||
table: "Products",
|
||||
type: "jsonb",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "jsonb",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<List<CategoryTranslation>>(
|
||||
name: "Translations",
|
||||
table: "Categories",
|
||||
type: "jsonb",
|
||||
nullable: false,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "jsonb",
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user