mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Upgrade overhaul: Retiring ancient patches and fixing de-Hibernate problems
- Moved setting of txn isolation level to ControlDAO - Retired patches where target schema is < 100 - Removed unreferenced patch implementations - Removed unreferenced DB scripts - Moved patch-specific queries (ACL upgrade counts) into patch-common-SqlMap.xml - Fixed count query result processing (max of nothing is NULL) leading to unboxing NPEs - All DM-modifying patches depend on DmPermissionsPatch i.e. it will normally run immediately after SQL scripts git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21908 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -74,6 +74,10 @@
|
||||
<!-- Parameter Maps -->
|
||||
<!-- -->
|
||||
|
||||
<parameterMap id="parameter_IdMap" class="map">
|
||||
<parameter property="id" jdbcType="BIGINT" javaType="long"/>
|
||||
</parameterMap>
|
||||
|
||||
<parameterMap id="parameter_admNewContentProp" class="map">
|
||||
<parameter property="longValue" jdbcType="BIGINT" javaType="java.lang.Long"/>
|
||||
<parameter property="nodeId" jdbcType="BIGINT" javaType="java.lang.Long"/>
|
||||
@@ -270,6 +274,47 @@
|
||||
name not in ('alfresco-tenants', '.avm_lock_table', '.PropertyBackedBeans', '.ChainingUserRegistrySynchronizer')
|
||||
</select>
|
||||
|
||||
<select id="select_AllAclIds" resultClass="long">
|
||||
select
|
||||
id
|
||||
from
|
||||
alf_access_control_list
|
||||
</select>
|
||||
|
||||
<!-- for patch -->
|
||||
<select id="select_UsedAclIds" resultClass="long">
|
||||
select acl_id from avm_nodes where acl_id is not null
|
||||
union select acl_id from avm_stores where acl_id is not null
|
||||
union select acl_id from alf_node where acl_id is not null
|
||||
union select acl_id from alf_attributes where acl_id is not null
|
||||
</select>
|
||||
|
||||
<!-- for patch -->
|
||||
<select id="select_MaxAclId" resultClass="long">
|
||||
select
|
||||
max(acl.id)
|
||||
from
|
||||
alf_access_control_list acl
|
||||
</select>
|
||||
|
||||
<!-- for patch -->
|
||||
<select id="select_DmNodeCount">
|
||||
select
|
||||
count(*)
|
||||
from
|
||||
alf_node
|
||||
</select>
|
||||
|
||||
<!-- for patch -->
|
||||
<select id="select_DmNodeCountWherePermissionsHaveChanged" parameterMap="parameter_IdMap">
|
||||
select
|
||||
count(*)
|
||||
from
|
||||
alf_node
|
||||
where
|
||||
acl_id > ?
|
||||
</select>
|
||||
|
||||
<!-- -->
|
||||
<!-- Updates -->
|
||||
<!-- -->
|
||||
|
@@ -377,48 +377,6 @@
|
||||
acl_id = ?
|
||||
</select>
|
||||
|
||||
<!-- for patch -->
|
||||
<select id="select_AllAclIds" resultClass="long">
|
||||
select
|
||||
id
|
||||
from
|
||||
alf_access_control_list
|
||||
</select>
|
||||
|
||||
<!-- for patch -->
|
||||
<select id="select_UsedAclIds" resultClass="long">
|
||||
select acl_id from avm_nodes where acl_id is not null
|
||||
union select acl_id from avm_stores where acl_id is not null
|
||||
union select acl_id from alf_node where acl_id is not null
|
||||
union select acl_id from alf_attributes where acl_id is not null
|
||||
</select>
|
||||
|
||||
<!-- for patch -->
|
||||
<select id="select_MaxAclId" resultClass="long">
|
||||
select
|
||||
max(acl.id)
|
||||
from
|
||||
alf_access_control_list acl
|
||||
</select>
|
||||
|
||||
<!-- for patch -->
|
||||
<select id="select_DmNodeCount">
|
||||
select
|
||||
count(*)
|
||||
from
|
||||
alf_node
|
||||
</select>
|
||||
|
||||
<!-- for patch -->
|
||||
<select id="select_DmNodeCountWherePermissionsHaveChanged" parameterMap="parameter_IdMap">
|
||||
select
|
||||
count(*)
|
||||
from
|
||||
alf_node
|
||||
where
|
||||
acl_id > ?
|
||||
</select>
|
||||
|
||||
<select id="select_AclMembersByAclId" parameterMap="parameter_IdMap" resultMap="result_AclMember">
|
||||
select
|
||||
*
|
||||
|
Reference in New Issue
Block a user