plura/migrations/20250110153933_systems_owner_index.sql
2025-06-08 21:12:07 +02:00

3 lines
182 B
SQL
Executable file

-- Add migration script here
-- Adds an index on systems.owner_id (which also means 1 system per owner. Probably fine)
CREATE UNIQUE INDEX systems_owner_index ON systems (owner_id);