309eb33c3111babba90bed3ec15015bcb7a4508d
PostgreSQL doesn't support inline CONSTRAINT with WHERE clause. Changed to separate CREATE UNIQUE INDEX statement for the partial unique constraint on (tech_id, agent_id, status) WHERE status = 'active'. This ensures only one active tunnel session per (tech, agent) pair while allowing multiple closed sessions in history. Migration tested and verified on PostgreSQL 14.
Description
Custom Claude Code behaviors and workflows - Multi-mode operation system
Languages
Python
27.8%
QuickBASIC
15.5%
PowerShell
15.1%
JavaScript
12.5%
omnetpp-msg
11.6%
Other
17.5%