Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
fix migration (#8451)
Conrad Irwinbdf59b8f066f
diff --git a/crates/collab/migrations/20240226164505_unique_channel_names.sql b/crates/collab/migrations/20240226164505_unique_channel_names.sqlindex 9e6a0d87618..c9d9f0a1cbf 100644--- a/crates/collab/migrations/20240226164505_unique_channel_names.sql+++ b/crates/collab/migrations/20240226164505_unique_channel_names.sql@@ -1,3 +1,3 @@-- Add migration script here-CREATE UNIQUE INDEX uix_channels_parent_path_name ON channels(parent_path, name) WHERE (parent_path IS NOT NULL);+CREATE UNIQUE INDEX uix_channels_parent_path_name ON channels(parent_path, name) WHERE (parent_path IS NOT NULL AND parent_path != '');