37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace DysonNetwork.Drive.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class ReinitalMigration : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<Dictionary<string, object>>(
|
|
name: "file_meta",
|
|
table: "files",
|
|
type: "jsonb",
|
|
nullable: false,
|
|
oldClrType: typeof(Dictionary<string, object>),
|
|
oldType: "jsonb",
|
|
oldNullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<Dictionary<string, object>>(
|
|
name: "file_meta",
|
|
table: "files",
|
|
type: "jsonb",
|
|
nullable: true,
|
|
oldClrType: typeof(Dictionary<string, object>),
|
|
oldType: "jsonb");
|
|
}
|
|
}
|
|
}
|