Knowledge:Migration from 6.2.21 to 6.4.2
From OpenKM Documentation
- 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';
Users and roles needed to be in tenant
SELECT concat('insert OKM_ENTITY_TENANT (ETN_ENTITY,ETN_TENANT,ETN_TYPE) values (''',USR_ID,''',''1'',','''user'');') FROM OKM_USER;
SELECT concat('insert OKM_ENTITY_TENANT (ETN_ENTITY,ETN_TENANT,ETN_TYPE) values (''',ROL_ID,''',''1'',','''role'');') FROM OKM_ROLE;