Files
warmbly/internal/infrastructure/db/migrations/000120_forms_domain.up.sql
T
Matthew Meszaros 290f1f00aa Merge remote-tracking branch 'origin/main' into feature/public-forms
# Conflicts:
#	cmd/backend/main.go
#	docs/content/docs/guides/workspace-export-import.mdx
2026-09-01 09:29:53 -07:00

10 lines
576 B
SQL

-- Organization-level custom forms domain. A customer points a subdomain of
-- the domain they send from at this install's forms host, so hosted form
-- links carry their own name instead of the shared one. Only a verified
-- domain is ever used to build a URL: an unresolved host would make every
-- form link in an email dead, so it falls back to the shared host instead.
ALTER TABLE organizations
ADD COLUMN forms_domain text NOT NULL DEFAULT '',
ADD COLUMN forms_domain_verified boolean NOT NULL DEFAULT false,
ADD COLUMN forms_domain_verified_at timestamptz;