11 lines
541 B
SQL
11 lines
541 B
SQL
|
|
-- (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;
|
|
|
|
------------------------------------------------------------------------------------------------------------------------
|