Files
alfresco-community-repo/config/alfresco/dbscripts/upgrade/4.0/org.hibernate.dialect.MySQLInnoDBDialect/AclChangeSet-Tracking.sql
Dave Ward 1236e1ef84 Merged V4.0-BUG-FIX to HEAD
36800: Fix for ALF-14217 - Repository link in the repository view of Share fails to link to Company Home metadata details page
   36801: ALF-13465: Ensure that linked folders go to folder-details and not document-details page
   36802: ALF-11027: Merge DEV/MAVEN-POC to V4.0-BUG-FIX
      36757: ALF-11027: remove spurious comment
      36593: ALF-11027: Fixed running from enterpriseprojects folder and strenghtened error messaging. Maven deployment needs to be run in -f continuous.xml environment and fails when set-build-number was not called in advance
   36803: ALF-13775: Set correct status code on missing index package doc response (updated Surf libs r1082)
   36805: Tweak exception inheritence to better fit with transaction rollbacks
   36806: Merged BRANCHES/DEV/CLOUDSYNCLOCAL2 to BRANCHES/DEV/V4.0-BUG-FIX:
      36556: A useful collection conversion utility method.
   36827: Record which CloudSyncLocal2 changes already been manually merged in
   36859: Merged V4.0 to V4.0-BUG-FIX
      36854: Part 2 for ALF-14237 Upgrades from 4.0.0.x/4.0.1.0 will not fix the timestamps on acl changesets - SOLR will skip ACLs set prior to upgrade
      - add id to avoid many changesets with the same timestamp
      36855: Part 3 for ALF-14237 Upgrades from 4.0.0.x/4.0.1.0 will not fix the timestamps on acl changesets - SOLR will skip ACLs set prior to upgrade
      - fix original patch again ...
   36861: Merged V4.0 to V4.0-BUG-FIX
      36852: ALF-13745: Merged V3.4-BUG-FIX (3.4.10) to V4.0 (4.0.2)
         <<< Extra change required for 4.0.x in alfresco-macros.lib.ftl >>>
         36851: ALF-13667 Additional OpenOffice mimetypes to be added to the mime-type maps
            - Added mime-type mappings to alfresco.js


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@36863 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2012-05-24 10:29:48 +00:00

36 lines
1.2 KiB
SQL

--
-- Title: Update ACL Change Set for Change Tracking
-- Database: MySQL
-- Since: V4.0 Schema 5008
-- Author: Derek Hulley
--
-- Please contact support@alfresco.com if you need assistance with the upgrade.
--
-- Rename redundant 'version' to indexed 'commit_time_ms'
ALTER TABLE alf_acl_change_set
CHANGE COLUMN version commit_time_ms BIGINT(20) NULL;
-- Fill with data
--FOREACH alf_acl_change_set.id system.upgrade.alf_acl_change_set.batchsize
UPDATE alf_acl_change_set
SET
commit_time_ms = ${NOW} + id
WHERE
id >= ${LOWERBOUND} AND id <= ${UPPERBOUND}
;
-- Add index on new data
CREATE INDEX idx_alf_acs_ctms ON alf_acl_change_set (commit_time_ms);
--
-- Record script finish
--
DELETE FROM alf_applied_patch WHERE id = 'patch.db-V4.0-AclChangeSet';
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.0-AclChangeSet', 'Manually executed script upgrade V4.0: Update ACL Change Set for Change Tracking',
0, 5007, -1, 5008, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
);