From f784e0847dc99fd50af9d2a2d8ce79ce8b332864 Mon Sep 17 00:00:00 2001 From: Pavel Date: Thu, 2 May 2024 12:58:06 +0300 Subject: [PATCH] update schema --- dal/schema/000010_init.up.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dal/schema/000010_init.up.sql b/dal/schema/000010_init.up.sql index 85b8042..490a072 100644 --- a/dal/schema/000010_init.up.sql +++ b/dal/schema/000010_init.up.sql @@ -103,8 +103,8 @@ CREATE TABLE IF NOT EXISTS rules ( ); CREATE UNIQUE INDEX idx_unique_users ON users (amoID); -CREATE UNIQUE INDEX idx_unique_pipeline ON pipelines (amoID, accountID) WHERE Deleted = false; -CREATE UNIQUE INDEX idx_unique_step ON steps (amoID, accountID, PipelineID) WHERE Deleted = false; -CREATE UNIQUE INDEX idx_unique_field ON fields (amoID, accountID, entity) WHERE Deleted = false; -CREATE UNIQUE INDEX idx_unique_tag ON tags (amoID, accountID, entity) WHERE Deleted = false; -CREATE UNIQUE INDEX idx_unique_rules ON rules (accountID, QuizID) WHERE Deleted = false; +CREATE UNIQUE INDEX idx_unique_pipeline ON pipelines (amoID, accountID); +CREATE UNIQUE INDEX idx_unique_step ON steps (amoID, accountID, PipelineID); +CREATE UNIQUE INDEX idx_unique_field ON fields (amoID, accountID, entity); +CREATE UNIQUE INDEX idx_unique_tag ON tags (amoID, accountID, entity); +CREATE UNIQUE INDEX idx_unique_rules ON rules (accountID, QuizID);