Fix ListChannels(owned) returning channels multiple (if there are deleted subscriptions) [skip-tests]
All checks were successful
Build Docker and Deploy / Run Unit-Tests (push) Has been skipped
Build Docker and Deploy / Build Docker Container (push) Successful in 41s
Build Docker and Deploy / Deploy to Server (push) Successful in 10s

This commit is contained in:
2025-04-18 16:02:14 +02:00
parent b280465914
commit 1f0f280286
7 changed files with 375 additions and 15 deletions

View File

@@ -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;
------------------------------------------------------------------------------------------------------------------------