17 lines
488 B
SQL
17 lines
488 B
SQL
-- Migration: Remove reporting_manager_id column completely
|
|
-- Date: 2025-10-29
|
|
-- Description: Drop reporting_manager_id column and its constraints from users table
|
|
|
|
-- Drop the foreign key constraint first
|
|
ALTER TABLE users DROP CONSTRAINT IF EXISTS users_reporting_manager_id_fkey;
|
|
|
|
-- Drop the index
|
|
DROP INDEX IF EXISTS idx_users_reporting_manager;
|
|
DROP INDEX IF EXISTS users_reporting_manager_id;
|
|
|
|
-- Drop the column
|
|
ALTER TABLE users DROP COLUMN IF EXISTS reporting_manager_id;
|
|
|
|
|
|
|