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
59 lines
1.9 KiB
SQL
59 lines
1.9 KiB
SQL
--
|
|
-- Title: Create Content tables
|
|
-- Database: MySQL InnoDB
|
|
-- Since: V3.2 Schema 2012
|
|
-- Author: Derek Hulley
|
|
--
|
|
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
|
--
|
|
|
|
CREATE TABLE alf_mimetype
|
|
(
|
|
id BIGINT NOT NULL AUTO_INCREMENT,
|
|
version BIGINT NOT NULL,
|
|
mimetype_str VARCHAR(100) NOT NULL,
|
|
PRIMARY KEY (id),
|
|
UNIQUE (mimetype_str)
|
|
) ENGINE=InnoDB;
|
|
|
|
CREATE TABLE alf_encoding
|
|
(
|
|
id BIGINT NOT NULL AUTO_INCREMENT,
|
|
version BIGINT NOT NULL,
|
|
encoding_str VARCHAR(100) NOT NULL,
|
|
PRIMARY KEY (id),
|
|
UNIQUE (encoding_str)
|
|
) ENGINE=InnoDB;
|
|
|
|
-- This table may exist during upgrades, but must be removed.
|
|
-- The drop statement is therefore optional.
|
|
DROP TABLE alf_content_url; --(optional)
|
|
CREATE TABLE alf_content_url
|
|
(
|
|
id BIGINT NOT NULL AUTO_INCREMENT,
|
|
content_url VARCHAR(255) NOT NULL,
|
|
content_url_short VARCHAR(12) NOT NULL,
|
|
content_url_crc BIGINT NOT NULL,
|
|
content_size BIGINT NOT NULL,
|
|
orphan_time BIGINT NULL,
|
|
UNIQUE INDEX idx_alf_conturl_cr (content_url_short, content_url_crc),
|
|
INDEX idx_alf_conturl_ot (orphan_time),
|
|
INDEX idx_alf_conturl_sz (content_size),
|
|
PRIMARY KEY (id)
|
|
) ENGINE=InnoDB;
|
|
|
|
CREATE TABLE alf_content_data
|
|
(
|
|
id BIGINT NOT NULL AUTO_INCREMENT,
|
|
version BIGINT NOT NULL,
|
|
content_url_id BIGINT NULL,
|
|
content_mimetype_id BIGINT NULL,
|
|
content_encoding_id BIGINT NULL,
|
|
content_locale_id BIGINT NULL,
|
|
CONSTRAINT fk_alf_cont_url FOREIGN KEY (content_url_id) REFERENCES alf_content_url (id),
|
|
CONSTRAINT fk_alf_cont_mim FOREIGN KEY (content_mimetype_id) REFERENCES alf_mimetype (id),
|
|
CONSTRAINT fk_alf_cont_enc FOREIGN KEY (content_encoding_id) REFERENCES alf_encoding (id),
|
|
CONSTRAINT fk_alf_cont_loc FOREIGN KEY (content_locale_id) REFERENCES alf_locale (id),
|
|
PRIMARY KEY (id)
|
|
) ENGINE=InnoDB;
|