This repository has been archived on 2026-03-09. You can view files and clone it, but cannot push or open issues or pull requests.
php-agentic/Migrations
Snider 331796c1da
Some checks failed
CI / PHP 8.3 (push) Failing after 2s
CI / PHP 8.4 (push) Failing after 2s
feat: add dedicated brain database connection for remote MariaDB
Brain memories can now be stored in a separate database, co-located
with Qdrant vectors on the homelab. Defaults to the app's main DB
when no BRAIN_DB_* env vars are set (zero-config for existing installs).

- Add brain.database config with BRAIN_DB_* env var support
- Register 'brain' database connection in Boot.php
- Set BrainMemory model to use 'brain' connection
- Update BrainService transactions to use brain connection
- Update migration to use brain connection, drop workspace FK
  (cross-database FKs not supported)
- Add migration to drop FK on existing installs
- Update default URLs from *.lthn.lan to *.lthn.sh

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-03 15:14:01 +00:00
..
0001_01_01_000001_create_agentic_tables.php fix(migrations): make idempotent and align schemas with models 2026-02-08 21:07:57 +00:00
0001_01_01_000002_add_ip_whitelist_to_agent_api_keys.php fix(migrations): make idempotent and align schemas with models 2026-02-08 21:07:57 +00:00
0001_01_01_000003_create_agent_plans_tables.php fix(migrations): make idempotent and align schemas with models 2026-02-08 21:07:57 +00:00
0001_01_01_000004_create_prompt_tables.php test: add PromptVersion model tests 2026-02-23 05:18:37 +00:00
0001_01_01_000005_add_performance_indexes.php fix: add missing database indexes (closes #21) 2026-02-23 06:29:14 +00:00
0001_01_01_000006_add_soft_deletes_to_agent_plans.php feat: add plan archival with retention policy (#34) 2026-02-23 15:11:55 +00:00
0001_01_01_000007_add_template_versions.php feat: add template version management (#35) 2026-02-24 13:25:17 +00:00
0001_01_01_000008_create_brain_memories_table.php feat: add dedicated brain database connection for remote MariaDB 2026-03-03 15:14:01 +00:00
0001_01_01_000009_drop_brain_memories_workspace_fk.php feat: add dedicated brain database connection for remote MariaDB 2026-03-03 15:14:01 +00:00