using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ManagerService.Migrations
{
///
public partial class AddResourceStorageAndAiColumns : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "AiChunkCount",
table: "Resources",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "AiIndexMessage",
table: "Resources",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "AiIndexStatus",
table: "Resources",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "AiIndexedAt",
table: "Resources",
type: "timestamp with time zone",
nullable: true);
migrationBuilder.AddColumn(
name: "FileName",
table: "Resources",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "IncludeInAiKnowledge",
table: "Resources",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "StoragePath",
table: "Resources",
type: "text",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "AiChunkCount",
table: "Resources");
migrationBuilder.DropColumn(
name: "AiIndexMessage",
table: "Resources");
migrationBuilder.DropColumn(
name: "AiIndexStatus",
table: "Resources");
migrationBuilder.DropColumn(
name: "AiIndexedAt",
table: "Resources");
migrationBuilder.DropColumn(
name: "FileName",
table: "Resources");
migrationBuilder.DropColumn(
name: "IncludeInAiKnowledge",
table: "Resources");
migrationBuilder.DropColumn(
name: "StoragePath",
table: "Resources");
}
}
}