Harden compliance portal data migrations

Mint certificate and domain GIDs with generate_gid, preserve
org profile and domain rows that lack a trust center, and skip
managed default-domain backfill when no base domain is set.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-17 12:29:36 +02:00
parent 89f999d55c
commit bc78f08334
5 changed files with 83 additions and 46 deletions

View File

@@ -12,6 +12,9 @@
-- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-- PERFORMANCE OF THIS SOFTWARE.
-- page_title (later renamed to title) is a full page heading, not an org-name
-- fragment for possessives like "{{name}}'s trust center". Seed from the org
-- name so existing pages keep a sensible default until editors customize it.
ALTER TABLE trust_centers
ADD COLUMN page_title TEXT;