Files
loki/drizzle/0066_project_auto_ship.sql
CatoandClaude Fable 5.1 95c40a9cd8 refactor: rename the product from FleetCrown to Loki (#695)
The product, its assistant, the repo, the host and every unit on the box now
share one name. 638 files, ~3,000 mentions: UI copy, config, env keys
(FLEETCROWN_* -> LOKI_*), systemd units (fleetcrown-* -> loki-*), docs,
articles, the deploy workflow other repos reuse, and nine file names.

- Three article slugs carried the old name and had been shared; permanent
  redirects keep those links alive (next.config.ts).
- test-no-retired-name.sh now also forbids the old product name across the
  whole repo, so the rename cannot creep back through templates and examples.
- ASSISTANT_STACK collapses the product and the assistant into one entry,
  because they are now the same name.

Infra was cut over ahead of this merge: /opt/loki, loki-* units, the `loki`
database and role, loki.orangecat.ch (old host 308s to it; /api, /widget,
/embed keep proxying), GitHub repos bitbaum/loki and bitbaum/loki-releases.
The Resend sending domain stays fleetcrown.orangecat.ch until the new domain
is verified in DNS.


Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 16:13:10 -07:00

17 lines
934 B
SQL

-- Migration: user_projects.auto_ship — may Loki merge the pull request
-- an agent opened for a visitor's feedback, once it is genuinely green?
--
-- Three states on purpose. NULL = the operator has never chosen, so the
-- project's Feedback section invites them rather than showing a switch that
-- looks like a decision someone already made. FALSE = chosen off; stop asking.
-- TRUE = Loki merges that PR (and only that PR) when GitHub says it is
-- mergeable and its checks passed.
--
-- Nullable and additive: every existing project keeps today's behaviour, where
-- the feedback row asks a person to merge. That default also protects client
-- sites by construction — Loki cannot tell a client site from its own
-- (that ledger lives in scripts/hetzner/apps.conf, not in this database), so
-- nothing ships itself until someone says so per project.
ALTER TABLE "user_projects" ADD COLUMN IF NOT EXISTS "auto_ship" boolean;