Files
nc-talk-ai/lib/Migration/Version020900Date20251126200000.php
T
Pascal Kienast 0739d3da6a Initial open-source release of Talk AI
Talk AI is a multi-bot AI assistant manager for Nextcloud Talk:
per-bot prompts and models, agentic tool calling (MCP + built-in
tools), RAG over Nextcloud files, room-document search, vision and
speech-to-text attachments, persistent bot wikis, approval workflows,
rate limiting, and multi-provider LLM support (any OpenAI-compatible
endpoint).

Developed within EDUC - the European Digital UniverCity
(https://educalliance.eu), where it runs as the 'EDUC AI' assistant on
the alliance-wide Nextcloud portal. This public repository is the
upstream point of truth; deployment-specific tools plug in via the
tool-provider extension point (docs/TOOL_PROVIDERS.md).

License: AGPL-3.0-or-later.
2026-07-08 21:13:13 +02:00

48 lines
1.5 KiB
PHP

<?php
declare(strict_types=1);
namespace OCA\EducAI\Migration;
use Closure;
use OCP\DB\ISchemaWrapper;
use OCP\DB\Types;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
/**
* Add Docling document conversion settings to educai_settings table.
*
* Docling allows converting PDF, DOCX, PPTX, and other binary documents
* to Markdown format for RAG ingestion.
*/
class Version020900Date20251126200000 extends SimpleMigrationStep {
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
if ($schema->hasTable('educai_settings')) {
$table = $schema->getTable('educai_settings');
// Enable/disable Docling document conversion
if (!$table->hasColumn('docling_enabled')) {
$table->addColumn('docling_enabled', Types::BOOLEAN, [
// notnull => false for cross-db compatibility
'notnull' => false,
'default' => 0,
]);
}
// Custom Docling API endpoint (optional, defaults to academiccloud)
if (!$table->hasColumn('docling_api_endpoint')) {
$table->addColumn('docling_api_endpoint', Types::STRING, [
'notnull' => false,
'length' => 512,
]);
}
}
return $schema;
}
}