mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Follow-up on merge of ALF-3683 and replace all "'UNKNOWN', 1, 1" with "'UNKNOWN', ${TRUE}, ${TRUE}"
- Also fix typo "UNKOWN" git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20827 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -54,5 +54,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.2-AuditTables', 'Manually executed script upgrade V3.2: Audit Tables',
|
'patch.db-V3.2-AuditTables', 'Manually executed script upgrade V3.2: Audit Tables',
|
||||||
0, 3001, -1, 3002, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 3001, -1, 3002, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
@@ -244,5 +244,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.2-AvmTables', 'Manually executed script upgrade V3.2: AVM Tables',
|
'patch.db-V3.2-AvmTables', 'Manually executed script upgrade V3.2: AVM Tables',
|
||||||
0, 3001, -1, 3002, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 3001, -1, 3002, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
@@ -65,5 +65,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.2-ContentTables', 'Manually executed script upgrade V3.2: Content Tables',
|
'patch.db-V3.2-ContentTables', 'Manually executed script upgrade V3.2: Content Tables',
|
||||||
0, 2011, -1, 2012, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 2011, -1, 2012, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
@@ -42,5 +42,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.2-LockTables', 'Manually executed script upgrade V3.2: Lock Tables',
|
'patch.db-V3.2-LockTables', 'Manually executed script upgrade V3.2: Lock Tables',
|
||||||
0, 2010, -1, 2011, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 2010, -1, 2011, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
@@ -118,5 +118,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.2-PropertyValueTables', 'Manually executed script upgrade V3.2: PropertyValue Tables',
|
'patch.db-V3.2-PropertyValueTables', 'Manually executed script upgrade V3.2: PropertyValue Tables',
|
||||||
0, 3000, -1, 3001, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 3000, -1, 3001, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
@@ -18,5 +18,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V2.1-JBPMProcessKey', 'Manually executed script upgrade V2.1: JBPM 3.2 Process Instance Key',
|
'patch.db-V2.1-JBPMProcessKey', 'Manually executed script upgrade V2.1: JBPM 3.2 Process Instance Key',
|
||||||
0, 62, -1, 63, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 62, -1, 63, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
@@ -19,5 +19,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V2.1-AuditPathIndex', 'Manually executed script upgrade V2.1: Ensure existence of audit path index',
|
'patch.db-V2.1-AuditPathIndex', 'Manually executed script upgrade V2.1: Ensure existence of audit path index',
|
||||||
0, 81, -1, 82, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 81, -1, 82, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
@@ -187,5 +187,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V2.2-ACL-From-2.1-A', 'Manually executed script upgrade V2.2: Update acl schema',
|
'patch.db-V2.2-ACL-From-2.1-A', 'Manually executed script upgrade V2.2: Update acl schema',
|
||||||
0, 82, -1, 120, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 82, -1, 120, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
@@ -19,5 +19,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V2.1-AuditPathIndex', 'Manually executed script upgrade V2.1: Ensure existence of audit path index',
|
'patch.db-V2.1-AuditPathIndex', 'Manually executed script upgrade V2.1: Ensure existence of audit path index',
|
||||||
0, 81, -1, 82, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 81, -1, 82, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
@@ -180,5 +180,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V2.2-ACL', 'Manually executed script upgrade V2.2: Update acl schema',
|
'patch.db-V2.2-ACL', 'Manually executed script upgrade V2.2: Update acl schema',
|
||||||
0, 119, -1, 120, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 119, -1, 120, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
||||||
|
@@ -90,5 +90,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V2.2-0-CreateMissingTables', 'Manually executed script upgrade V2.2: Created missing tables',
|
'patch.db-V2.2-0-CreateMissingTables', 'Manually executed script upgrade V2.2: Created missing tables',
|
||||||
0, 120, -1, 121, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 120, -1, 121, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
||||||
|
@@ -1138,5 +1138,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V2.2-Upgrade-From-2.1', 'Manually executed script upgrade V2.2: Upgrade from 2.1',
|
'patch.db-V2.2-Upgrade-From-2.1', 'Manually executed script upgrade V2.2: Upgrade from 2.1',
|
||||||
0, 85, -1, 91, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 85, -1, 91, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
||||||
|
@@ -666,5 +666,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V2.2-Upgrade-From-2.2SP1', 'Manually executed script upgrade V2.2: Upgraded V2.2 SP1 or SP2',
|
'patch.db-V2.2-Upgrade-From-2.2SP1', 'Manually executed script upgrade V2.2: Upgraded V2.2 SP1 or SP2',
|
||||||
86, 90, -1, 91, null, 'UNKOWN', 1, 1, 'Script completed'
|
86, 90, -1, 91, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
||||||
|
@@ -24,5 +24,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.0-0-CreateActivitiesExtras', 'Executed script create V3.0: Created activities extras',
|
'patch.db-V3.0-0-CreateActivitiesExtras', 'Executed script create V3.0: Created activities extras',
|
||||||
0, 125, -1, 126, null, 'UNKNOWN', 1, 1, 'Script completed'
|
0, 125, -1, 126, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
@@ -17,5 +17,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.1-Allow-IPv6', 'Manually executed script upgrade V3.1: Increase the ipAddress field length',
|
'patch.db-V3.1-Allow-IPv6', 'Manually executed script upgrade V3.1: Increase the ipAddress field length',
|
||||||
0, 2019, -1, 2020, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 2019, -1, 2020, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
||||||
|
@@ -22,5 +22,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.2-Remove-AVM-Issuer', 'Manually executed script upgrade V3.2 to remove AVM Issuer',
|
'patch.db-V3.2-Remove-AVM-Issuer', 'Manually executed script upgrade V3.2 to remove AVM Issuer',
|
||||||
0, 2007, -1, 2008, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 2007, -1, 2008, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
||||||
|
@@ -40,5 +40,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.2-Child-Assoc-QName-CRC', 'Manually executed script upgrade V3.2 to Add qname_crc column to alf_child_assoc and change indexes',
|
'patch.db-V3.2-Child-Assoc-QName-CRC', 'Manually executed script upgrade V3.2 to Add qname_crc column to alf_child_assoc and change indexes',
|
||||||
0, 3005, -1, 3006, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 3005, -1, 3006, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
||||||
|
@@ -21,5 +21,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.2-Upgrade-JBPM', 'Manually executed script upgrade V3.2 to jbpm version 3.3.1 usage',
|
'patch.db-V3.2-Upgrade-JBPM', 'Manually executed script upgrade V3.2 to jbpm version 3.3.1 usage',
|
||||||
0, 2017, -1, 2018, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 2017, -1, 2018, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
@@ -1,5 +1,5 @@
|
|||||||
--
|
--
|
||||||
-- Title: Upgrade to V3.2 - Remove AVM Issuer
|
-- Title: Upgrade to V3.2 - Remove AVM Issuer
|
||||||
-- Database: MySQL
|
-- Database: MySQL
|
||||||
-- Since: V3.2 schema 2008
|
-- Since: V3.2 schema 2008
|
||||||
-- Author: janv
|
-- Author: janv
|
||||||
@@ -7,41 +7,41 @@
|
|||||||
-- remove AVM node issuer - replace with auto-increment id
|
-- remove AVM node issuer - replace with auto-increment id
|
||||||
--
|
--
|
||||||
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
||||||
--
|
--
|
||||||
|
|
||||||
-- -----------------------------
|
-- -----------------------------
|
||||||
-- Enable auto-increment --
|
-- Enable auto-increment --
|
||||||
-- -----------------------------
|
-- -----------------------------
|
||||||
|
|
||||||
insert into avm_nodes (id, class_type, vers, version_id, guid, creator, owner, lastModifier, createDate, modDate, accessDate, is_root, store_new_id, acl_id, deletedType, layer_id, indirection, indirection_version, primary_indirection, opacity, content_url, mime_type, encoding, length)
|
insert into avm_nodes (id, class_type, vers, version_id, guid, creator, owner, lastModifier, createDate, modDate, accessDate, is_root, store_new_id, acl_id, deletedType, layer_id, indirection, indirection_version, primary_indirection, opacity, content_url, mime_type, encoding, length)
|
||||||
select
|
select
|
||||||
(select max(id)+1 from avm_nodes),
|
(select max(id)+1 from avm_nodes),
|
||||||
class_type, vers, version_id, guid, creator, owner, lastModifier, createDate, modDate, accessDate, is_root, store_new_id, acl_id, deletedType, layer_id, indirection, indirection_version, primary_indirection, opacity, content_url, mime_type, encoding, length
|
class_type, vers, version_id, guid, creator, owner, lastModifier, createDate, modDate, accessDate, is_root, store_new_id, acl_id, deletedType, layer_id, indirection, indirection_version, primary_indirection, opacity, content_url, mime_type, encoding, length
|
||||||
from avm_nodes where id = 0;
|
from avm_nodes where id = 0;
|
||||||
|
|
||||||
update avm_aspects set node_id = (select max(id) from avm_nodes) where node_id = 0;
|
update avm_aspects set node_id = (select max(id) from avm_nodes) where node_id = 0;
|
||||||
|
|
||||||
update avm_child_entries set parent_id = (select max(id) from avm_nodes) where parent_id = 0;
|
update avm_child_entries set parent_id = (select max(id) from avm_nodes) where parent_id = 0;
|
||||||
update avm_child_entries set child_id = (select max(id) from avm_nodes) where child_id = 0;
|
update avm_child_entries set child_id = (select max(id) from avm_nodes) where child_id = 0;
|
||||||
|
|
||||||
update avm_history_links set ancestor = (select max(id) from avm_nodes) where ancestor = 0;
|
update avm_history_links set ancestor = (select max(id) from avm_nodes) where ancestor = 0;
|
||||||
update avm_history_links set descendent = (select max(id) from avm_nodes) where descendent = 0;
|
update avm_history_links set descendent = (select max(id) from avm_nodes) where descendent = 0;
|
||||||
|
|
||||||
update avm_merge_links set mfrom = (select max(id) from avm_nodes) where mfrom = 0;
|
update avm_merge_links set mfrom = (select max(id) from avm_nodes) where mfrom = 0;
|
||||||
update avm_merge_links set mto = (select max(id) from avm_nodes) where mto = 0;
|
update avm_merge_links set mto = (select max(id) from avm_nodes) where mto = 0;
|
||||||
|
|
||||||
update avm_node_properties set node_id = (select max(id) from avm_nodes) where node_id = 0;
|
update avm_node_properties set node_id = (select max(id) from avm_nodes) where node_id = 0;
|
||||||
|
|
||||||
update avm_stores set current_root_id = (select max(id) from avm_nodes) where current_root_id = 0;
|
update avm_stores set current_root_id = (select max(id) from avm_nodes) where current_root_id = 0;
|
||||||
|
|
||||||
update avm_version_roots set root_id = (select max(id) from avm_nodes) where root_id = 0;
|
update avm_version_roots set root_id = (select max(id) from avm_nodes) where root_id = 0;
|
||||||
|
|
||||||
delete from avm_nodes where id = 0;
|
delete from avm_nodes where id = 0;
|
||||||
|
|
||||||
alter table avm_nodes modify column id bigint not null auto_increment;
|
alter table avm_nodes modify column id bigint not null auto_increment;
|
||||||
|
|
||||||
-- drop issuer table
|
-- drop issuer table
|
||||||
|
|
||||||
drop table avm_issuer_ids;
|
drop table avm_issuer_ids;
|
||||||
|
|
||||||
--
|
--
|
||||||
@@ -53,5 +53,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.2-Remove-AVM-Issuer', 'Manually executed script upgrade V3.2 to remove AVM Issuer',
|
'patch.db-V3.2-Remove-AVM-Issuer', 'Manually executed script upgrade V3.2 to remove AVM Issuer',
|
||||||
0, 2007, -1, 2008, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 2007, -1, 2008, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
||||||
|
@@ -15,5 +15,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.3-Node-Prop-Serializable', 'Manually executed script upgrade V3.3',
|
'patch.db-V3.3-Node-Prop-Serializable', 'Manually executed script upgrade V3.3',
|
||||||
0, 4105, -1, 4106, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 4105, -1, 4106, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
||||||
|
@@ -73,5 +73,5 @@ INSERT INTO alf_applied_patch
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
'patch.db-V3.3-modify-index-permission_id', 'Remove context_id from the permission_id unique index (as it always contains null and therefore has no effect)',
|
'patch.db-V3.3-modify-index-permission_id', 'Remove context_id from the permission_id unique index (as it always contains null and therefore has no effect)',
|
||||||
0, 4102, -1, 4103, null, 'UNKOWN', 1, 1, 'Script completed'
|
0, 4102, -1, 4103, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user