- Timestamp:
- 08/11/2026 07:18:51 PM (4 weeks ago)
- Branches:
- main
- Children:
- bac4bf3
- Parents:
- 960f015
- git-author:
- Robin <roboburr@…> (08/11/2026 07:12:33 PM)
- git-committer:
- Robin <roboburr@…> (08/11/2026 07:18:51 PM)
- Location:
- src
- Files:
-
- 2 edited
-
config/database.js (modified) (2 diffs)
-
services/ensurePrimarySite.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/config/database.js
r960f015 r7e9d0ea 266 266 `); 267 267 268 // Global app settings (key/value singleton). Includes the tenancy mode 269 // (solo = one site, hub = company site + /user/). Default = solo. 268 // Global app settings (key/value singleton). One instance is one owner, so 269 // there is no tenancy mode here anymore — see SettingsService. 270 // Oudere installaties dragen nog een dode rij key='tenancy' ('solo' of 271 // 'circle'). Niets leest hem; bewust laten staan (shaer-x7c0) in plaats van 272 // er opruimcode voor te schrijven die na één ronde zelf dood is. 270 273 db.exec(` 271 274 CREATE TABLE IF NOT EXISTS app_settings ( … … 275 278 ); 276 279 `); 277 db.prepare("INSERT OR IGNORE INTO app_settings (key, value) VALUES ('tenancy', 'solo')").run();278 280 279 281 // ── Statistics (premium) — cookie-free ────────────────────── -
src/services/ensurePrimarySite.js
r960f015 r7e9d0ea 3 3 4 4 // A Klonkt instance should ALWAYS have a primary site — it carries the identity 5 // (title, theme, profile) and is the anchor point in solo/hub/circle mode.5 // (title, theme, profile) and is the anchor point for the whole instance. 6 6 // The register flow already creates one, but an admin created via a script 7 7 // (or an empty sites table for any reason) left the instance without a site: … … 10 10 // This helper runs at boot (and is idempotent): as soon as there is an admin 11 11 // but no site yet, it creates a default site owned by the first god/admin. 12 // Tenancy-agnostic — applies to solo, hub, and circle.13 12 14 13 function defaultTitle() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)