Merged V3.4 to HEAD (SQL-level fixes)

23368: Merged V3.3-BUG-FIX to V3.4
      23363: Merged V3.3 to V3.3-BUG-FIX
         23358: (RECORD ONLY) Removed redundant svn:mergeinfo
         23359: Minor I18N fix on patch.updateMimetypes2
         23360: Fixed ALF-3167: Websphere/Db2 SchemaBootstrap.dumpSchema is failing due to result set is closed error
                - SchemaDump uses nested resultset reads, which is incompatible with SchemaBootstrap's auto-commit connection
                - Also pull back some changes to fix MySQL builds after MySQL upgrades
         23361: More patch I18N
         23362: Merged V3.2 to V3.3
            23333: Fixed ALF-5396: Missing FK indexes on non-MySQL databases
            23324: Fixed ALF-5396: Missing FK indexes on non-MySQL databases
            - Create scripts were manually ported and required full clean-install testing in addition to upgrade testing
   23372: Fixed ALF-5421: update_ChildAssocsIndex ibatis statement does not include child_node_id
   23523: Merged BRANCHES/DEV/V3.3-BUG-FIX to BRANCHES/V3.4:
      23490: Merged BRANCHES/V3.3 to BRANCHES/DEV/V3.3-BUG-FIX:
         23470: Merged V3.2 to V3.3
            23395: Merged BRANCHES/DEV/BELARUS/HEAD_2010_09_21 to V32
               22821: ALF-4203: WCM 2.2.7 case-sensitivity causes errors after upgrade to 3.2.x.
               23055: ALF-4203: WCM 2.2.7 case-sensitivity causes errors after upgrade to 3.2.x (record-only, used only part of this checkin).
               23198: ALF-4203: WCM 2.2.7 case-sensitivity causes errors after upgrade to 3.2.x.
            23398: ALF-4203: fix for "WCM 2.2.7 case-senstivity causes err rs after upgrade to 3.2.x"
                   - updated template for patch.eliminateDuplicates
            23433: Fix for ALF-4203: "WCM 2.2.7 case-sensitivity causes errors after upgrade to 3.2.x"
                   - revised fix
   23752: Fixed ALF-5453: Remove old Audit tables from schema create scripts
   23957: Fixed ALF-5308: SQL error when changing name for record / folder with dispostion schedule applied
   24250: Fix typo in original fix of ALF-5308 and add unit test
   24345: Merged V3.3 to V3.4
      24337: Fixed ALF-6078: WCM: alf_lock table version number fails during roll-over.
             - Added specific, minor fixes for 3.4
   24352: Fix SQL fallout from ALF-6078


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@24354 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2010-12-09 01:32:16 +00:00
parent f7098315ec
commit 9cc9e975ff
39 changed files with 715 additions and 608 deletions

View File

@@ -153,90 +153,6 @@ CREATE TABLE alf_authority_alias
CONSTRAINT fk_alf_autha_ali FOREIGN KEY (alias_id) REFERENCES alf_authority (id)
) ENGINE=InnoDB;
CREATE TABLE alf_audit_config
(
id BIGINT NOT NULL AUTO_INCREMENT,
config_url TEXT NOT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB;
CREATE TABLE alf_audit_date
(
id BIGINT NOT NULL AUTO_INCREMENT,
date_only date NOT NULL,
day_of_year INTEGER NOT NULL,
day_of_month INTEGER NOT NULL,
day_of_week INTEGER NOT NULL,
week_of_year INTEGER NOT NULL,
week_of_month INTEGER NOT NULL,
month INTEGER NOT NULL,
quarter INTEGER NOT NULL,
half_year INTEGER NOT NULL,
full_year INTEGER NOT NULL,
PRIMARY KEY (id),
KEY idx_alf_adtd_woy (week_of_year),
KEY idx_alf_adtd_fy (full_year),
KEY idx_alf_adtd_q (quarter),
KEY idx_alf_adtd_wom (week_of_month),
KEY idx_alf_adtd_dom (day_of_month),
KEY idx_alf_adtd_doy (day_of_year),
KEY idx_alf_adtd_dow (day_of_week),
KEY idx_alf_adtd_m (month),
KEY idx_alf_adtd_hy (half_year),
KEY idx_alf_adtd_dat (date_only)
) ENGINE=InnoDB;
CREATE TABLE alf_audit_source
(
id BIGINT NOT NULL AUTO_INCREMENT,
application VARCHAR(255) NOT NULL,
service VARCHAR(255),
method VARCHAR(255),
PRIMARY KEY (id),
KEY idx_alf_adts_met (method),
KEY idx_alf_adts_ser (service),
KEY idx_alf_adts_app (application)
) ENGINE=InnoDB;
CREATE TABLE alf_audit_fact
(
id BIGINT NOT NULL AUTO_INCREMENT,
user_id VARCHAR(255) NOT NULL,
timestamp DATETIME NOT NULL,
transaction_id VARCHAR(56) NOT NULL,
session_id VARCHAR(56),
store_protocol VARCHAR(50),
store_id VARCHAR(100),
node_uuid VARCHAR(36),
path TEXT,
filtered BIT NOT NULL,
return_val TEXT,
arg_1 TEXT,
arg_2 TEXT,
arg_3 TEXT,
arg_4 TEXT,
arg_5 TEXT,
fail BIT NOT NULL,
serialized_url TEXT,
exception_message TEXT,
host_address TEXT,
client_address TEXT,
message_text TEXT,
audit_date_id BIGINT NOT NULL,
audit_conf_id BIGINT NOT NULL,
audit_source_id BIGINT NOT NULL,
PRIMARY KEY (id),
KEY idx_alf_adtf_ref (store_protocol, store_id, node_uuid),
KEY idx_alf_adtf_usr (user_id),
KEY fk_alf_adtf_src (audit_source_id),
KEY fk_alf_adtf_date (audit_date_id),
KEY fk_alf_adtf_conf (audit_conf_id),
KEY idx_alf_adtf_pth (path(128)),
CONSTRAINT fk_alf_adtf_conf FOREIGN KEY (audit_conf_id) REFERENCES alf_audit_config (id),
CONSTRAINT fk_alf_adtf_date FOREIGN KEY (audit_date_id) REFERENCES alf_audit_date (id),
CONSTRAINT fk_alf_adtf_src FOREIGN KEY (audit_source_id) REFERENCES alf_audit_source (id)
) ENGINE=InnoDB;
CREATE TABLE alf_server
(
id BIGINT NOT NULL AUTO_INCREMENT,