internal/store/migrations/0024_domain_verify.up.sql

93b38a063b3b4b161a1baf976e92f53d02b1a221
gitbay/internal/store/migrations/0024_domain_verify.up.sql history · blame · raw

6 lines · 434 bytes

1-- DNS-challenge verification for custom pages domains. Existing claims
2-- predate verification and stay serving: they are grandfathered verified.
3ALTER TABLE page_domains ADD COLUMN token TEXT NOT NULL DEFAULT '';
4ALTER TABLE page_domains ADD COLUMN user_id INTEGER NOT NULL DEFAULT 0;
5ALTER TABLE page_domains ADD COLUMN verified_at TEXT NOT NULL DEFAULT '';
6UPDATE page_domains SET verified_at = created_at WHERE verified_at = '';