mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
54544: ALF-19487 : ORACLE: AVM: Schema difference is present after upgrade from 3.4.13/4.0.2/4.1.5 Removed/changed unnecessary index idx_avm_vr_revuq. Added patches for all DBs. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54662 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
26 lines
1012 B
SQL
26 lines
1012 B
SQL
--
|
|
-- Title: DROP unused IDX_AVM_VR_REVUQ index
|
|
-- Database: InnoDB
|
|
-- Since: V4.2 Schema 6031
|
|
-- Author: Alex Mukha
|
|
--
|
|
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
|
--
|
|
-- ALF-19487 : ORACLE: AVM: Schema difference is present after upgrade from 3.4.13/4.0.2/4.1.5
|
|
|
|
DROP INDEX idx_avm_vr_revuq ON avm_version_roots;
|
|
DROP INDEX version_id ON avm_version_roots;
|
|
ALTER TABLE avm_version_roots ADD CONSTRAINT UNIQUE INDEX idx_avm_vr_uq (avm_store_id, version_id);
|
|
|
|
--
|
|
-- Record script finish
|
|
--
|
|
|
|
DELETE FROM alf_applied_patch WHERE id = 'patch.db-V4.2-drop-AVM-index';
|
|
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-V4.2-drop-AVM-index', 'Manually executed script to drop unnecessary index',
|
|
0, 6031, -1, 6032, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
|
); |