Fix ListChannels(owned) returning channels multiple (if there are deleted subscriptions)
Build Docker and Deploy / Deploy to Server (push) Blocked by required conditions
Build Docker and Deploy / Build Docker Container (push) Successful in 51s
Build Docker and Deploy / Run Unit-Tests (push) Has been cancelled

This commit is contained in:
2025-04-18 16:02:14 +02:00
parent b280465914
commit 87abd47ffb
7 changed files with 375 additions and 15 deletions
@@ -0,0 +1,10 @@
-- (only add indizes)
--
------------------------------------------------------------------------------------------------------------------------
CREATE UNIQUE INDEX "idx_subscriptions_ref2" ON subscriptions (subscriber_user_id, channel_owner_user_id, channel_id) WHERE deleted=0;
CREATE UNIQUE INDEX "idx_subscriptions_ref3" ON subscriptions (subscriber_user_id, channel_id) WHERE deleted=0;
------------------------------------------------------------------------------------------------------------------------