-- Add PostgreSQL password support to user_passwords table
-- This migration adds a column to store PostgreSQL passwords for SSO integration

USE whp;

-- Add PostgreSQL password column to user_passwords table
ALTER TABLE user_passwords ADD COLUMN IF NOT EXISTS postgresql_password VARCHAR(255) DEFAULT NULL AFTER mysql_password;

-- Add index for better performance
CREATE INDEX IF NOT EXISTS idx_user_passwords_username ON user_passwords(username);