-- Email verification becomes a precondition for holding a session (ADR 0038). Any platform owner -- that already exists was created by the trusted operator-run bootstrap command before that command -- marked addresses verified, so without this they would be locked out of their own installation by -- an upgrade. -- -- Deliberately narrow. It marks exactly the identities the authorization tables already record as -- currently-granted platform owners: an authority the deployment established through a command that -- required database credentials, which is the same authority the bootstrap verification exception -- rests on. Every other account is left untouched and must verify by email like any other. -- -- Data-only and idempotent. It adds no column, drops nothing, and re-running it changes no row that -- is not already false. UPDATE "ekklesia_core_user" SET "email_verified" = true WHERE "email_verified" = false AND "id" IN ( SELECT "user_id" FROM "ekklesia_core_platform_owner" WHERE "revoked_at" IS NULL );