xtablo-source/sql/21_is_temporary.sql

9 lines
432 B
MySQL
Raw Normal View History

2025-10-02 16:45:35 +00:00
-- 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';