mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
10963: Merged DEV/LARGE_COLLECTION_PROPERTIES_2.2.1 to V2.2 - PersonService: Lucene removal - Lucene optimizations (in progress) - Multi-valued and locale-specific properties persisted in alf_node_properties - Removal of unused AVM tables 10987: Oracle dialects and enhanced SQL patch support - Only support Alfresco's 9i and 10g dialects (with auto-switching) - SQL script patches can now apply selectively to ranges 11007: Test to check cached retrieval of QNames git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11206 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
36 lines
1.5 KiB
SQL
36 lines
1.5 KiB
SQL
--
|
|
-- Title: Post-Create Constraints
|
|
-- Database: Generic
|
|
-- Since: V2.2 Schema 86
|
|
-- Author: Derek Hulley
|
|
--
|
|
-- Certain Hibernate mappings don't allow constraints to be declared and are therefore
|
|
-- explicitly required. All other constraints are automatically added by the
|
|
-- Hibernate-generated script.
|
|
--
|
|
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
|
--
|
|
|
|
--
|
|
-- Explicit indexes and constraints not declared in the mappings
|
|
--
|
|
|
|
CREATE INDEX fk_alf_nasp_qn ON alf_node_aspects (qname_id);
|
|
ALTER TABLE alf_node_aspects ADD CONSTRAINT fk_alf_nasp_qn FOREIGN KEY (qname_id) REFERENCES alf_qname (id);
|
|
|
|
CREATE INDEX fk_alf_nprop_qn ON alf_node_properties (qname_id);
|
|
ALTER TABLE alf_node_properties ADD CONSTRAINT fk_alf_nprop_qn FOREIGN KEY (qname_id) REFERENCES alf_qname (id);
|
|
|
|
CREATE INDEX fk_alf_nprop_loc ON alf_node_properties (locale_id);
|
|
ALTER TABLE alf_node_properties ADD CONSTRAINT fk_alf_nprop_loc FOREIGN KEY (locale_id) REFERENCES alf_locale (id);
|
|
|
|
CREATE INDEX fk_avm_nasp_qn ON avm_aspects (qname_id);
|
|
ALTER TABLE avm_aspects ADD CONSTRAINT fk_avm_nasp_qn FOREIGN KEY (qname_id) REFERENCES alf_qname (id);
|
|
|
|
CREATE INDEX fk_avm_nprop_qn ON avm_node_properties (qname_id);
|
|
ALTER TABLE avm_node_properties ADD CONSTRAINT fk_avm_nprop_qn FOREIGN KEY (qname_id) REFERENCES alf_qname (id);
|
|
|
|
CREATE INDEX idx_avm_hl_revpk ON avm_history_links (descendent, ancestor);
|
|
|
|
CREATE INDEX idx_avm_vr_revuq ON avm_version_roots (avm_store_id, version_id);
|