From 81fc237fe048555875b2de3c6d00348dcda7ec6e Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Sat, 15 Jun 2024 15:31:13 +1000 Subject: [PATCH] fix: subscription names not unique (#1796) Was causes db errors deplying modules that use the same name for a subscription --- backend/controller/sql/schema/001_init.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/controller/sql/schema/001_init.sql b/backend/controller/sql/schema/001_init.sql index 45c95c1349..356af63305 100644 --- a/backend/controller/sql/schema/001_init.sql +++ b/backend/controller/sql/schema/001_init.sql @@ -397,7 +397,7 @@ CREATE TABLE topic_subscriptions ( module_id BIGINT NOT NULL REFERENCES modules(id), -- Name of the subscription. - name TEXT UNIQUE NOT NULL, + name TEXT NOT NULL, -- Cursor pointing into the topic_events table. cursor BIGINT REFERENCES topic_events(id) ON DELETE CASCADE,