azcomputerguru 9a6d67fdc5 Fix migration syntax: Use partial unique index instead of inline constraint
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.
2026-04-14 07:39:58 -07:00
Description
Custom Claude Code behaviors and workflows - Multi-mode operation system
3 GiB
Languages
Python 30.2%
QuickBASIC 14.4%
PowerShell 14.3%
JavaScript 11.6%
omnetpp-msg 10.8%
Other 18.7%