// Migration: Drop CHECK constraint on jira_tickets.status // Allows storing raw Jira status strings (e.g. "Approval/Handoff", "Prioritizing") // instead of mapping to the limited set of Open/In Progress/Closed. // Idempotent — safe to run multiple times. const pool = require('../db'); async function run() { console.log('[Migration] Dropping jira_tickets_status_check constraint...'); await pool.query(`ALTER TABLE jira_tickets DROP CONSTRAINT IF EXISTS jira_tickets_status_check`); console.log('✓ jira_tickets status CHECK constraint dropped (or did not exist)'); await pool.end(); } run().catch(err => { console.error('Migration failed:', err.message); process.exit(1); });