zed/crates/collab/migrations/20240226164505_unique_channel_names.sql
Conrad Irwin bdf59b8f06
fix migration (#8451)
Release Notes:

- N/A
2024-02-26 13:50:26 -07:00

4 lines
166 B
SQL

-- Add migration script here
CREATE UNIQUE INDEX uix_channels_parent_path_name ON channels(parent_path, name) WHERE (parent_path IS NOT NULL AND parent_path != '');