mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
7624: QName Refactor Merge 1 of 9 7625: QName Refactor Merge 2 of 9 7626: QName Refactor Merge 3 of 9 7627: QName Refactor Merge 4 of 9 7628: QName Refactor Merge 5 of 9 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8436 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
26 lines
1.1 KiB
SQL
26 lines
1.1 KiB
SQL
--
|
|
-- Title: Ensure that all Foreign Key indexes are present
|
|
-- Database: MySQL InnoDB
|
|
-- Since: V2.1 Schema 64
|
|
-- Author: Derek Hulley
|
|
--
|
|
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
|
--
|
|
-- The MySQL InnoDB Dialect has special support for foreign keys.
|
|
|
|
-- Remove pointless duplicated FK indexes
|
|
ALTER TABLE alf_global_attributes DROP INDEX FK64D0B9CF69B9F16A;(optional)
|
|
ALTER TABLE alf_node DROP INDEX FK60EFB62696FBEE85;(optional)
|
|
ALTER TABLE alf_child_assoc DROP INDEX FKFFC5468E96FBEE85;(optional)
|
|
|
|
--
|
|
-- Record script finish
|
|
--
|
|
DELETE FROM alf_applied_patch WHERE id = 'patch.db-V2.1-FKIndexes';
|
|
INSERT INTO alf_applied_patch
|
|
(id, description, fixes_from_schema, fixes_to_schema, applied_to_schema, target_schema, applied_on_date, applied_to_server, was_executed, succeeded, report)
|
|
VALUES
|
|
(
|
|
'patch.db-V2.1-FKIndexes', 'Manually executed script upgrade V2.1: Ensure existence of V2.1 FK indexes',
|
|
0, 63, -1, 64, null, 'UNKOWN', 1, 1, 'Script completed'
|
|
); |