diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_management.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_management.sql index 777b3cd687..d8c62b7079 100644 --- a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_management.sql +++ b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_4__project_management.sql @@ -141,6 +141,7 @@ CREATE INDEX idx_create_time ON file_module (create_time desc); CREATE INDEX idx_update_timed ON file_module (update_time desc); CREATE INDEX idx_pos ON file_module (pos); CREATE INDEX idx_create_user ON file_module (create_user); +CREATE UNIQUE INDEX uq_name_project_parent_type ON file_module (project_id, name, module_type, parent_id); CREATE TABLE IF NOT EXISTS project