Project

General

Profile

Actions

bug #9634

closed

Update AgentBase and DescriptiveDataSet titleCache length where needed

Added by Andreas Müller over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Highest
Category:
cdm
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Found in Version:

Description

In some databases the AgentBase titleCache has only length 255, not 800. Also the DescriptiveDataSet titleCache has usually only 255, not 800. This needs to be updated. On production AgentBase and DescriptiveDataSet and both it's AUD tables have already been fixed.

ALTER TABLE `AgentBase`
    CHANGE COLUMN `titleCache` `titleCache` VARCHAR(800) NULL DEFAULT NULL COLLATE 'utf8_general_ci' AFTER `protectedtitlecache`;
ALTER TABLE `AgentBase_AUD`
    CHANGE COLUMN `titleCache` `titleCache` VARCHAR(800) NULL DEFAULT NULL COLLATE 'utf8_general_ci' AFTER `protectedtitlecache`;
ALTER TABLE `DescriptiveDataSet`
    CHANGE COLUMN `titleCache` `titleCache` VARCHAR(800) NULL DEFAULT NULL COLLATE 'utf8_general_ci' AFTER `protectedTitleCache`;
ALTER TABLE `DescriptiveDataSet_AUD`
    CHANGE COLUMN `titleCache` `titleCache` VARCHAR(800) NULL DEFAULT NULL COLLATE 'utf8_general_ci' AFTER `protectedTitleCache`;

The above is only for MySQL. Maybe it is enough to udpate MySQL.

Statement to find open issues on MySQL:

SELECT *
FROM COLUMNS c
WHERE c.COLUMN_NAME = 'titleCache' AND c.CHARACTER_MAXIMUM_LENGTH <> 800 
ORDER BY c.TABLE_SCHEMA, c.TABLE_NAME
Actions #1

Updated by Andreas Müller over 1 year ago

  • Description updated (diff)
Actions #2

Updated by Andreas Müller over 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50
Actions #3

Updated by Andreas Müller over 1 year ago

  • Target version changed from CDM UML 5.35 to Release 5.25
Actions #4

Updated by Andreas Müller over 1 year ago

  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100

I did run the "find open issue" statement on edit-test and edit-integration and could not find any open issues except for those which have not been updated yet via schema update (cdm_pesi_erms, cdm_pesi_euromed, cdm_rl_plantae).

So I think we can close the ticket as the update script works.

Actions

Also available in: Atom PDF