0028_migration_requests_public.sql12 lines · main
1-- 0028_migration_requests_public — drop the NOT NULL on user_id so
2-- unauthenticated leads from /migrate can submit a request without
3-- creating an account first. Operator triages from /dashboard/admin/
4-- migrations exactly the same way; rows with null user_id show as
5-- "unauth lead" until the operator manually links them (or the
6-- customer creates an account later).
7--
8-- This is the friction-reducing slice for non-technical users who want
9-- to hear "yes, we can move you off X" before they commit to signing
10-- up for a new platform.
11
12ALTER TABLE "migration_requests" ALTER COLUMN "user_id" DROP NOT NULL;