SAIL-382: DAO to HEAD merge fallout: fix schema upgrade patch "property-unique-ctx-value"

- to enable upgrade from before 3.2

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20842 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2010-06-28 12:59:33 +00:00
parent e54ae4f5ae
commit cd11a35e8f
2 changed files with 7 additions and 2 deletions

View File

@@ -7,10 +7,12 @@
-- Please contact support@alfresco.com if you need assistance with the upgrade. -- Please contact support@alfresco.com if you need assistance with the upgrade.
-- --
-- Optional if upgrading from before 3.2.x
ALTER TABLE alf_prop_unique_ctx ALTER TABLE alf_prop_unique_ctx
ADD COLUMN prop1_id BIGINT NULL AFTER value3_prop_id, ADD COLUMN prop1_id BIGINT NULL AFTER value3_prop_id,
ADD CONSTRAINT fk_alf_propuctx_p1 FOREIGN KEY (prop1_id) REFERENCES alf_prop_root (id) ADD CONSTRAINT fk_alf_propuctx_p1 FOREIGN KEY (prop1_id) REFERENCES alf_prop_root (id)
; ; --(optional)
-- --
-- Record script finish -- Record script finish

View File

@@ -7,10 +7,13 @@
-- Please contact support@alfresco.com if you need assistance with the upgrade. -- Please contact support@alfresco.com if you need assistance with the upgrade.
-- --
-- Optional if upgrading from before 3.2.x
ALTER TABLE alf_prop_unique_ctx ALTER TABLE alf_prop_unique_ctx
ADD COLUMN prop1_id INT8, ADD COLUMN prop1_id INT8,
ADD CONSTRAINT fk_alf_propuctx_p1 FOREIGN KEY (prop1_id) REFERENCES alf_prop_root (id) ADD CONSTRAINT fk_alf_propuctx_p1 FOREIGN KEY (prop1_id) REFERENCES alf_prop_root (id)
; ; --(optional)
-- --
-- Record script finish -- Record script finish