Repository navigation
v1.3.0 — Multi-account + project-scoped installations
Multi-account + project-scoped connector installations.
Added
- Multi-account installations —
connector_installations.label(default'default') relaxes the composite unique to(tenant_id, connector_name, label). A tenant can connect more than one account per connector (e.g. two IMAP mailboxes, several Drive/OneDrive accounts, multiple Notion workspaces), each disambiguated bylabel. Tenant-first (R30/R31). - Optional project binding —
connector_installations.project_key(nullable, indexed(tenant_id, project_key)) binds an account to a real KB project; empty inherits the tenant default. BaseConnector::resolveProjectKey(ConnectorInstallation): string— single source of truth for the ingest project: explicitproject_key→config('kb.ingest.default_project')→'default'. Replaces the per-connectorconnector-<key>fallback.
Migration notes
labelbackfills to'default'on existing rows (prior single-account installs preserved). The migrationup()is idempotent and fully convergent across migrate→rollback→migrate cycles, with non-destructive label disambiguation (collision-proof across the whole tenant/connector scope, 64-char-safe).- Fully backward compatible for hosts that create one installation per connector.