Files
fquiz/migrations/make_user_email_nullable.sql
2026-06-18 00:34:20 +08:00

10 lines
362 B
SQL

-- Migration: Make user email column nullable
-- Date: 2026-06-18
-- Description: Modify users table to make email column nullable to support optional email during user creation
ALTER TABLE users ALTER COLUMN email DROP NOT NULL;
-- Notes:
-- This migration allows users to be created without an email address.
-- The email field remains unique when provided.