nordabiz/database/migrations/063_fix_website_urls_prefix.sql
Maciej Pienczyn bbb43aaac7
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
fix: add https:// prefix to website URLs missing scheme
- Fixed 14 companies with bare domain URLs (e.g. www.example.pl -> https://www.example.pl)
- Added ensure_url filter to contact bar href (was missing in one place)
- Migration 063 fixes existing data, template filter prevents future issues

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 19:22:38 +01:00

11 lines
313 B
SQL

-- Migration 063: Fix website URLs missing https:// prefix
-- 14 companies have website URLs without http/https scheme
UPDATE companies
SET website = 'https://' || website,
updated_at = NOW()
WHERE website IS NOT NULL
AND website != ''
AND website NOT LIKE 'http://%'
AND website NOT LIKE 'https://%';