mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
87804: ACE-2030: Retire jbpm-upgrade.sql including patches using it The from-to schema values match those of the 'patch.db-V3.2-Upgrade-JBPM' bean and they both referenced the same SQL file. Therefore, it was simply a duplicate with the V3.2 bean being the one doing the actual work. This bean is therefore joining the V3.2 version in retirement. The 'targetSchema' is for information purposes only and has been changed from 6001 to 2018, which is what it actually did. 87805: ACE-2030: Remove more patches introduced for upgrade to V3.2 87806: ACE-2030: Remove more patches introduced for upgrade to V3.3.x 87807: Move patch.migrateAttrDropOldTables out of the danger zone (ACE-2030) before continuing clean up. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@87812 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
35 lines
1.2 KiB
SQL
35 lines
1.2 KiB
SQL
--
|
|
-- Title: Create lock tables
|
|
-- Database: MySQL InnoDB
|
|
-- Since: V3.2 Schema 2011
|
|
-- Author: Derek Hulley
|
|
--
|
|
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
|
--
|
|
|
|
CREATE TABLE alf_lock_resource
|
|
(
|
|
id BIGINT NOT NULL AUTO_INCREMENT,
|
|
version BIGINT NOT NULL,
|
|
qname_ns_id BIGINT NOT NULL,
|
|
qname_localname VARCHAR(255) NOT NULL,
|
|
CONSTRAINT fk_alf_lockr_ns FOREIGN KEY (qname_ns_id) REFERENCES alf_namespace (id),
|
|
PRIMARY KEY (id),
|
|
UNIQUE INDEX idx_alf_lockr_key (qname_ns_id, qname_localname)
|
|
) ENGINE=InnoDB;
|
|
|
|
CREATE TABLE alf_lock
|
|
(
|
|
id BIGINT NOT NULL auto_increment,
|
|
version BIGINT NOT NULL,
|
|
shared_resource_id BIGINT NOT NULL,
|
|
excl_resource_id BIGINT NOT NULL,
|
|
lock_token VARCHAR(36) NOT NULL,
|
|
start_time BIGINT NOT NULL,
|
|
expiry_time BIGINT NOT NULL,
|
|
CONSTRAINT fk_alf_lock_shared FOREIGN KEY (shared_resource_id) REFERENCES alf_lock_resource (id),
|
|
CONSTRAINT fk_alf_lock_excl FOREIGN KEY fk_alf_lock_excl (excl_resource_id) REFERENCES alf_lock_resource (id),
|
|
PRIMARY KEY (id),
|
|
UNIQUE INDEX idx_alf_lock_key (shared_resource_id, excl_resource_id)
|
|
) ENGINE=InnoDB;
|