Difference between revisions of "Knowledge:Migration from 6.4.1 to 6.4.2"
From OpenKM Documentation
Line 9: | Line 9: | ||
* '''All OKM_NODETYPE* tables should be deleted''' | * '''All OKM_NODETYPE* tables should be deleted''' | ||
* '''All OKM_TASK_MANAGER* tables should be deleted''' | * '''All OKM_TASK_MANAGER* tables should be deleted''' | ||
+ | |||
+ | * Migration of automation step 1 | ||
+ | <source lang="sql"> | ||
+ | SELECT AAC_ID, AAC_TYPE, 'UPDATE OKM_AUTO_ACTION set AAC_CLASS_NAME=''' || (SELECT AMD_CLASS_NAME FROM OKM_AUTO_METADATA WHERE AMD_ID=AAC_TYPE) || ''' where AAC_ID=' || AAC_ID || ';' FROM OKM_AUTO_ACTION; | ||
+ | SELECT AVL_ID, AVL_TYPE, 'UPDATE OKM_AUTO_VALIDATION set AVL_CLASS_NAME=''' || (SELECT AMD_CLASS_NAME FROM OKM_AUTO_METADATA WHERE AMD_ID=AVL_TYPE) || ''' where AVL_ID=' || AVL_ID || ';' FROM OKM_AUTO_VALIDATION; | ||
+ | </source> | ||
* Stop Tomcat | * Stop Tomcat | ||
Line 17: | Line 23: | ||
UPDATE OKM_CONFIG SET CFG_KEY='text.banner' WHERE CFG_KEY='logo.banner'; | UPDATE OKM_CONFIG SET CFG_KEY='text.banner' WHERE CFG_KEY='logo.banner'; | ||
UPDATE OKM_CONFIG SET CFG_KEY='text.welcome' WHERE CFG_KEY='logo.welcome'; | UPDATE OKM_CONFIG SET CFG_KEY='text.welcome' WHERE CFG_KEY='logo.welcome'; | ||
+ | </source> | ||
+ | |||
+ | * Migration of automation step 2 | ||
+ | Execute queries from migration step 1 | ||
+ | <source lang="sql"> | ||
+ | ALTER TABLE OKM_AUTO_ACTION DROP COLUMN AAC_TYPE; | ||
+ | ALTER TABLE OKM_AUTO_VALIDATION DROP COLUMN AVL_TYPE ; | ||
</source> | </source> | ||
Revision as of 15:34, 24 July 2013
OpenKM 6.4.2 is currently under development. |
- Download update from http://openkm.com/download/okm/OpenKM-6.4.2.zip (eMpg8eIjY5)
- Make a backup!!!
- All OKM_NODETYPE* tables should be deleted
- All OKM_TASK_MANAGER* tables should be deleted
- Migration of automation step 1
SELECT AAC_ID, AAC_TYPE, 'UPDATE OKM_AUTO_ACTION set AAC_CLASS_NAME=''' || (SELECT AMD_CLASS_NAME FROM OKM_AUTO_METADATA WHERE AMD_ID=AAC_TYPE) || ''' where AAC_ID=' || AAC_ID || ';' FROM OKM_AUTO_ACTION;
SELECT AVL_ID, AVL_TYPE, 'UPDATE OKM_AUTO_VALIDATION set AVL_CLASS_NAME=''' || (SELECT AMD_CLASS_NAME FROM OKM_AUTO_METADATA WHERE AMD_ID=AVL_TYPE) || ''' where AVL_ID=' || AVL_ID || ';' FROM OKM_AUTO_VALIDATION;
- Stop Tomcat
- Run from your preferred SQL client these queries:
UPDATE OKM_CONFIG SET CFG_KEY='text.banner' WHERE CFG_KEY='logo.banner';
UPDATE OKM_CONFIG SET CFG_KEY='text.welcome' WHERE CFG_KEY='logo.welcome';
- Migration of automation step 2
Execute queries from migration step 1
ALTER TABLE OKM_AUTO_ACTION DROP COLUMN AAC_TYPE;
ALTER TABLE OKM_AUTO_VALIDATION DROP COLUMN AVL_TYPE ;
- Edit OpenKM.cfg and set hibernate.hbm2ddl to update
- Replace the OpenKM.war
- Review file descriptor limit and, eventually, increase it.
- Start Tomcat again
- Check for database errors:
$ grep "ERROR .*hbm2ddl" $TOMCAT_HOME/logs/catalina.log
- Set installation customer at License Manager.
- Enjoy OpenKM 6.4.2!
If you have any weird problem try to stop Tomcat, delete these folders:
- $TOMCAT_HOME/webapps/OpenKM
- $TOMCAT_HOME/work/Catalina/localhost
And start Tomcat again.
Recommended to clear browser cache and Java Plugin cache |