mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Better fix for ALF-4431: Upgrade fails to create UsageDelta tables
- Investigation of previous attempt showed that the use of 'alternatives' was not going to work here - Pulled out all 'alf_usage_delta' creations from other upgrade scripts - Removed alternatives from patch 'patch.db-V3.4-UsageTables' - Added '--(optional)' at various locations to keep things sane - Tested 2.1.7, 2.2.x and clean bootstrap on MySQL git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21979 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -15,9 +15,9 @@ CREATE TABLE alf_usage_delta
|
||||
delta_size INT8 NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
CONSTRAINT fk_alf_usaged_n FOREIGN KEY (node_id) REFERENCES alf_node (id)
|
||||
);
|
||||
CREATE INDEX fk_alf_usaged_n ON alf_usage_delta (node_id);
|
||||
CREATE SEQUENCE alf_usage_delta_seq START WITH 1 INCREMENT BY 1;
|
||||
); -- (optional)
|
||||
CREATE INDEX fk_alf_usaged_n ON alf_usage_delta (node_id); -- (optional)
|
||||
CREATE SEQUENCE alf_usage_delta_seq START WITH 1 INCREMENT BY 1; -- (optional)
|
||||
|
||||
--
|
||||
-- Record script finish
|
||||
|
Reference in New Issue
Block a user