mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)
78403: Merged EOL (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud) 75700: ACE-2149: EOL AVM / WCM - Remove most of the AVM and WCM beans, scripts, classes, patches, etc - The Explorer client is very broken for compilation - TODO: Remove all WCM-related functionality, which I thought would be best left to a UI dev I've murdered many of the classes and beans but there's more to do - The repository compiles TODO: Get it running again - TODO: Check if we can wipe the 'deployment' project as well git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@82540 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1,51 +0,0 @@
|
||||
--
|
||||
-- Title: Upgrade to V3.4 - AVM rename duplicates (if any)
|
||||
-- Database: PostgreSQL
|
||||
-- Since: V3.4 schema 4209
|
||||
-- Author: dward
|
||||
--
|
||||
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
||||
--
|
||||
|
||||
create table t_avm_child_entries (
|
||||
parent_id INT8 not null,
|
||||
lc_name varchar(160) not null,
|
||||
name varchar(160) not null,
|
||||
child_id INT8 not null,
|
||||
primary key (parent_id, lc_name)
|
||||
);
|
||||
|
||||
--FOREACH avm_child_entries.child_id system.upgrade.t_avm_child_entries.batchsize
|
||||
INSERT INTO t_avm_child_entries (parent_id, lc_name, name, child_id)
|
||||
SELECT parent_id, LOWER(name), name, child_id
|
||||
FROM avm_child_entries
|
||||
WHERE child_id >= ${LOWERBOUND} AND child_id <= ${UPPERBOUND};
|
||||
|
||||
DROP TABLE avm_child_entries;
|
||||
ALTER TABLE t_avm_child_entries RENAME TO avm_child_entries;
|
||||
|
||||
alter table avm_child_entries
|
||||
add constraint fk_avm_ce_child
|
||||
foreign key (child_id)
|
||||
references avm_nodes (id);
|
||||
create index fk_avm_ce_child on avm_child_entries(child_id);
|
||||
|
||||
alter table avm_child_entries
|
||||
add constraint fk_avm_ce_parent
|
||||
foreign key (parent_id)
|
||||
references avm_nodes (id);
|
||||
create index fk_avm_ce_parent on avm_child_entries(parent_id);
|
||||
|
||||
CREATE INDEX idx_avm_ce_lc_name ON avm_child_entries (lc_name, parent_id);
|
||||
|
||||
--
|
||||
-- Record script finish
|
||||
--
|
||||
DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.4-AVM-index-child-entries-lower';
|
||||
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-V3.4-AVM-index-child-entries-lower', 'Manually executed script upgrade V3.4',
|
||||
0, 6002, -1, 6003, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||
);
|
Reference in New Issue
Block a user