zed/crates/collab/migrations/20240226164505_unique_channel_names.sql

4 lines
166 B
MySQL
Raw Normal View History

-- 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 != '');