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:
Derek Hulley
2010-08-20 14:45:18 +00:00
parent bda714b422
commit a22fdceccd
45 changed files with 654 additions and 4468 deletions

View File

@@ -40,16 +40,9 @@ import com.ibatis.sqlmap.client.event.RowHandler;
*/
public interface PatchDAO
{
/**
* Does the underlying connection support isolation level 1 (dirty read)
*
* @return true if we can do a dirty db read and so track changes (Oracle can not)
*/
public boolean supportsProgressTracking();
// AVM-related
public Long getAVMNodesCountWhereNewInStore();
public long getAVMNodesCountWhereNewInStore();
public List<AVMNodeEntity> getEmptyGUIDS(int count);
@@ -57,7 +50,7 @@ public interface PatchDAO
public List<AVMNodeEntity> getNullVersionLayeredFiles(int count);
public Long getMaxAvmNodeID();
public long getMaxAvmNodeID();
public List<Long> getAvmNodesWithOldContentProperties(Long minNodeId, Long maxNodeId);
@@ -67,7 +60,7 @@ public interface PatchDAO
// DM-related
public Long getMaxAdmNodeID();
public long getMaxAdmNodeID();
/**
* Migrates DM content properties from the old V3.1 format (String-based {@link ContentData#toString()})
@@ -111,7 +104,7 @@ public interface PatchDAO
*
* @return - max acl id
*/
public Long getMaxAclId();
public long getMaxAclId();
/**
* How many DM nodes are there?