add index for exclusive yclients rules
This commit is contained in:
parent
08ce39d8a8
commit
cf81806650
@ -7,3 +7,4 @@ DROP TABLE If EXIST YclientsTimeSlots;
|
||||
DROP TABLE If EXIST YclientsRules;
|
||||
|
||||
DROP INDEX if exist idx_unique_tokens_yclients;
|
||||
DROP INDEX if exist idx_unique_yclients_rules;
|
||||
@ -86,6 +86,8 @@ CREATE TABLE IF NOT EXISTS YclientsRules (
|
||||
CreatedAt TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
CREATE UNIQUE INDEX idx_unique_yclients_rules ON YclientsRules (SalonID, QuizID) WHERE Deleted = false;
|
||||
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user