Merged BRANCHES/DEV/BELARUS/HEAD_2010_09_02 to HEAD:

22168: ALF-1962 : Port and patch additional index to alf_child_assoc - idx_alf_cass_pri
   - This merge does an early add of the index when upgrading directly from 2.1.7 or 2.2.1,
     avoiding unecessary table modification


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22170 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2010-09-02 11:17:15 +00:00
parent 721fb7eff1
commit edc7e96e6b
4 changed files with 4 additions and 0 deletions

View File

@@ -362,6 +362,7 @@ CREATE TABLE t_alf_child_assoc
INDEX fk_alf_cass_cnode (child_node_id),
INDEX fk_alf_cass_tqn (type_qname_id),
INDEX fk_alf_cass_qnns (qname_ns_id),
INDEX idx_alf_cass_pri (parent_node_id, is_primary, child_node_id),
CONSTRAINT fk_alf_cass_pnode foreign key (parent_node_id) REFERENCES t_alf_node (id),
CONSTRAINT fk_alf_cass_cnode foreign key (child_node_id) REFERENCES t_alf_node (id),
CONSTRAINT fk_alf_cass_tqn foreign key (type_qname_id) REFERENCES alf_qname (id),