xtablo-source/sql/21_is_temporary.sql
2025-10-02 18:45:35 +02: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';