xtablo-source/supabase/migrations_backup/21_is_temporary.sql
2025-11-06 08:37:52 +01:00

8 lines
432 B
SQL

-- Add is_temporary column to profiles table
ALTER TABLE profiles ADD COLUMN is_temporary BOOLEAN DEFAULT FALSE;
-- Update the column to be NOT NULL with default value
ALTER TABLE profiles ALTER COLUMN is_temporary SET NOT NULL;
-- Add a comment to document the column purpose
COMMENT ON COLUMN profiles.is_temporary IS 'Indicates if the user account was created with a temporary password and needs to be changed on first login';