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