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

9d8fd17820457f0c60320c9f4a8b0da1db45a6b0
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 = '';