-- 015_job_post_hiring_manager.sql -- Stable owner of a requisition. Distinct from current_recruiter_id (who is -- working the req now, and may change). Both people also get a job_assignments -- history row; this column is the current pointer used by Jobs lists and the -- Managers portal. Applied at startup by alembic_setup.run_manual_sql(). -- Needed because prod boots with DB_AUTOGENERATE=false. ALTER TABLE app.job_posts ADD COLUMN IF NOT EXISTS hiring_manager_id UUID REFERENCES app.users(id); CREATE INDEX IF NOT EXISTS ix_job_posts_hiring_manager_id ON app.job_posts (hiring_manager_id);