Difference between revisions of "Knowledge:Migration from 6.2.23 to 6.2.24"
From OpenKM Documentation
Line 1: | Line 1: | ||
− | + | * See [http://issues.openkm.com/changelog_page.php?version_id=92 changelog at Mantis] | |
− | |||
− | * See [http://issues.openkm.com/changelog_page.php?version_id= | ||
* Download update from http://openkm.com/download/okm/OpenKM-6.2.24.zip (eMpg8eIjY5) | * Download update from http://openkm.com/download/okm/OpenKM-6.2.24.zip (eMpg8eIjY5) | ||
Line 8: | Line 6: | ||
* Stop Tomcat | * Stop Tomcat | ||
− | |||
− | |||
− | |||
− | |||
− | |||
* Edit [[OpenKM.cfg]] and set '''hibernate.hbm2ddl''' to '''update''' | * Edit [[OpenKM.cfg]] and set '''hibernate.hbm2ddl''' to '''update''' | ||
Line 18: | Line 11: | ||
* Replace the OpenKM.war | * Replace the OpenKM.war | ||
− | * Review file descriptor limit and, eventually, [http:// | + | * Review file descriptor limit and, eventually, [http://entopia.openkmcloud.com/OpenKM/index.jsp?uuid=23ce359a-3568-4a2e-994d-91f924e9fa08 increase it]. |
* Start Tomcat again | * Start Tomcat again |
Revision as of 17:28, 16 January 2014
- Download update from http://openkm.com/download/okm/OpenKM-6.2.24.zip (eMpg8eIjY5)
- Make a backup!!!
- Stop Tomcat
- 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
- Go to Administration > Database Query, and update configuration properties:
Solve ampersand problem converting & to & ( internal datastore change );
SELECT concat('OKMDocument.getInstance().rename(null, "', NBS_UUID, '","', NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_DOCUMENT) AND NBS_NAME LIKE '%&%';
SELECT concat('OKMFolder.getInstance().rename(null, "', NBS_UUID, '","', NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_FOLDER) AND NBS_NAME LIKE '%&%';
SELECT concat('OKMDocument.getInstance().rename(null, "', NBS_UUID, '","', NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_DOCUMENT) AND NBS_NAME LIKE '%>%';
SELECT concat('OKMFolder.getInstance().rename(null, "', NBS_UUID, '","', NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_FOLDER) AND NBS_NAME LIKE '%>%';
SELECT concat('OKMDocument.getInstance().rename(null, "', NBS_UUID, '","', NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_DOCUMENT) AND NBS_NAME LIKE '%<%';
SELECT concat('OKMFolder.getInstance().rename(null, "', NBS_UUID, '","', NBS_NAME, '");') FROM OKM_NODE_BASE WHERE NBS_UUID IN (SELECT NBS_UUID FROM OKM_NODE_FOLDER) AND NBS_NAME LIKE '%<%';
Execute the result script
import com.openkm.api.OKMDocument;
import com.openkm.api.OKMFolder;
// Add here
- Set installation customer at License Manager.
- Enjoy OpenKM 6.2.24!
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 |