mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
8146: Interim checkin for Oracle upgrade scripts. 8150: AR-1905 8151: AR-1956 8152: Correct I18N when reporting patch description 8153: QName script for Oracle along with fixes for unique constraints on assoc tables 8155: Upgrade scripts for Oracle V2.2 - almost there 8164: AWC-1633: Unable to edit rule added via web service 8166: V2.2 upgrade scripts for MySQL and Oracle 8170: AWC-1515: E-mail doesn't reach user's mail box, if it was created with the help of templates 8174: Fix for AWC-798 8180: Fix for AWC-1843 8183: Fixes for different unique index names on alf_child_assoc 8189: AWC-1719: Need to alllow Rules to account for a space being deleted 8249: Fixed handling of empty namespaces on Oracle 8259: Fixes for null namespaces in QName 8360: Modified alf_audit_date columns and added patch 8404: Fix AR-2133: Fix handling of empty namespaces during upgrade git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8481 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
91 lines
3.2 KiB
SQL
91 lines
3.2 KiB
SQL
--
|
|
-- Title: Create missing 2.1 tables
|
|
-- Database: Oracle
|
|
-- Since: V2.2 Schema 86
|
|
-- Author: Derek Hulley
|
|
--
|
|
-- Please contact support@alfresco.com if you need assistance with the upgrade.
|
|
--
|
|
-- Upgrade paths that bypass V2.1 will need to have a some tables added in order
|
|
-- to simplify subsequent upgrade scripts.
|
|
--
|
|
|
|
-- Fix alf_audit_date column names
|
|
|
|
ALTER TABLE alf_audit_date RENAME COLUMN halfYear TO half_year;
|
|
ALTER TABLE alf_audit_date RENAME COLUMN year TO full_year;
|
|
|
|
-- create other new tables
|
|
|
|
create table avm_aspects (
|
|
id number(19,0) not null,
|
|
node_id number(19,0),
|
|
qname varchar2(200 char),
|
|
primary key (id)
|
|
); -- (optional)
|
|
|
|
create table avm_aspects_new (
|
|
id number(19,0) not null,
|
|
qname_id number(19,0) not null,
|
|
primary key (id, qname_id)
|
|
); -- (optional)
|
|
|
|
create table avm_node_properties (
|
|
id number(19,0) not null,
|
|
node_id number(19,0),
|
|
qname varchar2(200 char),
|
|
actual_type_n number(10,0) not null,
|
|
persisted_type_n number(10,0) not null,
|
|
multi_valued number(1,0) not null,
|
|
boolean_value number(1,0),
|
|
long_value number(19,0),
|
|
float_value float,
|
|
double_value double precision,
|
|
string_value varchar2(1024 char),
|
|
serializable_value long raw,
|
|
primary key (id)
|
|
); -- (optional)
|
|
|
|
create table avm_node_properties_new (
|
|
node_id number(19,0) not null,
|
|
actual_type_n number(10,0) not null,
|
|
persisted_type_n number(10,0) not null,
|
|
multi_valued number(1,0) not null,
|
|
boolean_value number(1,0),
|
|
long_value number(19,0),
|
|
float_value float,
|
|
double_value double precision,
|
|
string_value varchar2(1024 char),
|
|
serializable_value long raw,
|
|
qname_id number(19,0) not null,
|
|
primary key (node_id, qname_id)
|
|
); -- (optional)
|
|
|
|
create table avm_store_properties (
|
|
id number(19,0) not null,
|
|
avm_store_id number(19,0),
|
|
qname_id number(19,0) not null,
|
|
actual_type_n number(10,0) not null,
|
|
persisted_type_n number(10,0) not null,
|
|
multi_valued number(1,0) not null,
|
|
boolean_value number(1,0),
|
|
long_value number(19,0),
|
|
float_value float,
|
|
double_value double precision,
|
|
string_value varchar2(1024 char),
|
|
serializable_value long raw,
|
|
primary key (id)
|
|
); -- (optional)
|
|
|
|
--
|
|
-- Record script finish
|
|
--
|
|
DELETE FROM alf_applied_patch WHERE id = 'patch.db-V2.2-0-CreateMissingTables';
|
|
INSERT INTO alf_applied_patch
|
|
(id, description, fixes_from_schema, fixes_to_schema, applied_to_schema, target_schema, applied_on_date, applied_to_server, was_executed, succeeded, report)
|
|
VALUES
|
|
(
|
|
'patch.db-V2.2-0-CreateMissingTables', 'Manually executed script upgrade V2.2: Created missing tables',
|
|
0, 85, -1, 86, null, 'UNKOWN', 1, 1, 'Script completed'
|
|
);
|