mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
ALF-19487 : ORACLE: AVM: Schema difference is present after upgrade from 3.4.13/4.0.2/4.1.5
Fixed scripts for PostgreSQL to run on 9.0. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54668 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -125,10 +125,9 @@
|
|||||||
primary key (id)
|
primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
create unique index idx_avm_vr_uq on avm_version_roots (avm_store_id, version_id);
|
|
||||||
alter table avm_version_roots
|
alter table avm_version_roots
|
||||||
add constraint idx_avm_vr_uq
|
add constraint idx_avm_vr_uq
|
||||||
unique using index idx_avm_vr_uq;
|
unique (avm_store_id, version_id);
|
||||||
|
|
||||||
alter table avm_aspects
|
alter table avm_aspects
|
||||||
add constraint fk_avm_nasp_n
|
add constraint fk_avm_nasp_n
|
||||||
|
@@ -10,8 +10,7 @@
|
|||||||
|
|
||||||
DROP INDEX idx_avm_vr_revuq;
|
DROP INDEX idx_avm_vr_revuq;
|
||||||
ALTER TABLE avm_version_roots DROP CONSTRAINT avm_version_roots_version_id_avm_store_id_key;
|
ALTER TABLE avm_version_roots DROP CONSTRAINT avm_version_roots_version_id_avm_store_id_key;
|
||||||
CREATE UNIQUE INDEX idx_avm_vr_uq ON avm_version_roots (avm_store_id, version_id);
|
ALTER TABLE avm_version_roots ADD CONSTRAINT idx_avm_vr_uq UNIQUE (avm_store_id, version_id);
|
||||||
ALTER TABLE avm_version_roots ADD CONSTRAINT idx_avm_vr_uq UNIQUE USING INDEX idx_avm_vr_uq;
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Record script finish
|
-- Record script finish
|
||||||
|
Reference in New Issue
Block a user