Difference between revisions of "Knowledge:Migration from 6.2.21 to 6.4.2"

From OpenKM Documentation
Jump to: navigation, search
Line 1: Line 1:
 +
* Run from your preferred SQL client these queries:
 +
 +
'''MySQL'''
 +
<source lang="sql">
 +
alter table OKM_NODE_NOTE modify NNT_TEXT longtext;
 +
</source>
 +
 +
'''PostgreSQL'''
 +
<source lang="sql">
 +
alter table OKM_NODE_NOTE alter NNT_TEXT TYPE text;
 +
</source>
 +
 +
'''Oracle'''
 +
<source lang="sql">
 +
alter table OKM_NODE_NOTE modify (NNT_TEXT clob);
 +
</source>
 +
 +
If the ALTER TABLE sentence fails in Oracle with ORA-22858, you have another way:
 +
 +
<source lang="sql">
 +
alter table OKM_NODE_NOTE add NNT_TEXT_TMP CLOB;
 +
update OKM_NODE_NOTE set NNT_TEXT_TMP = NNT_TEXT;
 +
alter table OKM_NODE_NOTE drop NNT_TEXT;
 +
alter table OKM_NODE_NOTE rename NNT_TEXT_TMP to NNT_TEXT;
 +
</source>
 +
 +
* Run from your preferred SQL client these queries:
 +
 
<source lang="sql">
 
<source lang="sql">
 
update OKM_AUTO_METADATA set AMD_TYPE00='code' where AMD_CLASS_NAME='com.openkm.automation.action.ExecuteScripting';
 
update OKM_AUTO_METADATA set AMD_TYPE00='code' where AMD_CLASS_NAME='com.openkm.automation.action.ExecuteScripting';
 
</source>
 
</source>

Revision as of 10:06, 8 December 2012

  • Run from your preferred SQL client these queries:

MySQL

alter table OKM_NODE_NOTE modify NNT_TEXT longtext;

PostgreSQL

alter table OKM_NODE_NOTE alter NNT_TEXT TYPE text;

Oracle

alter table OKM_NODE_NOTE modify (NNT_TEXT clob);

If the ALTER TABLE sentence fails in Oracle with ORA-22858, you have another way:

alter table OKM_NODE_NOTE add NNT_TEXT_TMP CLOB;
update OKM_NODE_NOTE set NNT_TEXT_TMP = NNT_TEXT;
alter table OKM_NODE_NOTE drop NNT_TEXT;
alter table OKM_NODE_NOTE rename NNT_TEXT_TMP to NNT_TEXT;
  • Run from your preferred SQL client these queries:
update OKM_AUTO_METADATA set AMD_TYPE00='code' where AMD_CLASS_NAME='com.openkm.automation.action.ExecuteScripting';