Files
nc-talk-ai/lib/Migration/Version020700Date20251126100000.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

61 lines
1.8 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 Course Catalogue integration settings columns
*/
class Version020700Date20251126100000 extends SimpleMigrationStep {
/**
* @param IOutput $output
* @param Closure(): ISchemaWrapper $schemaClosure
* @param array $options
* @return null|ISchemaWrapper
*/
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
$tableName = 'educai_settings';
if ($schema->hasTable($tableName)) {
$table = $schema->getTable($tableName);
// Enable/disable the catalogue integration
if (!$table->hasColumn('catalogue_enabled')) {
$table->addColumn('catalogue_enabled', Types::BOOLEAN, [
'notnull' => false,
'default' => 0,
]);
}
// The base URL for the catalogue API (e.g., https://catalogue.example.com/api)
if (!$table->hasColumn('catalogue_api_endpoint')) {
$table->addColumn('catalogue_api_endpoint', Types::STRING, [
'notnull' => false,
'length' => 512,
]);
}
// Optional API key for authenticated catalogue endpoints.
if (!$table->hasColumn('catalogue_api_key')) {
$table->addColumn('catalogue_api_key', Types::STRING, [
'notnull' => false,
'length' => 512,
]);
}
return $schema;
}
return null;
}
}