beb0ef521b
Splits the AI tab into Configuration, Categorization, and Chat sections with independent feature toggles. Both toggles are disabled when Ollama URL or model is not configured. ChatPanel FAB is gated on isChatEnabled. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
810 B
C#
30 lines
810 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Purrse.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddIsChatEnabled : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsChatEnabled",
|
|
table: "ai_categorization_settings",
|
|
type: "boolean",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IsChatEnabled",
|
|
table: "ai_categorization_settings");
|
|
}
|
|
}
|
|
}
|