using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace mws.backend.dotnet.infrastructure.Migrations
{
///
public partial class DropDocumentContent_AddStorageFields : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Content",
table: "documents");
migrationBuilder.AddColumn(
name: "ContentHash",
table: "documents",
type: "character varying(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn(
name: "ContentSize",
table: "documents",
type: "bigint",
nullable: true);
migrationBuilder.AddColumn(
name: "UpdatedContentAt",
table: "documents",
type: "timestamp with time zone",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ContentHash",
table: "documents");
migrationBuilder.DropColumn(
name: "ContentSize",
table: "documents");
migrationBuilder.DropColumn(
name: "UpdatedContentAt",
table: "documents");
migrationBuilder.AddColumn(
name: "Content",
table: "documents",
type: "text",
nullable: true);
}
}
}