Skip to content
Snippets Groups Projects
Verified Commit a6639207 authored by Damien's avatar Damien
Browse files

FEAT #10525 TIME 1:15 Migration

parent 0126d729
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<dataType name="collection_list" base="string"> <dataType name="collection_list" base="string">
<enumeration value="letterbox_coll" /> <enumeration value="letterbox_coll" />
<enumeration value="attachments_coll" /> <enumeration value="attachments_coll" />
<enumeration value="version_attachments_coll" /> <enumeration value="attachments_version_coll" />
<enumeration value="business_coll" /> <enumeration value="business_coll" />
<enumeration value="res_coll" /> <enumeration value="res_coll" />
<enumeration value="apa_coll" /> <enumeration value="apa_coll" />
......
#!/bin/sh #!/bin/sh
php ./migrateFullText.php php ./migrateFullText.php
php ./migrateServicesEntities.php #php ./migrateServicesEntities.php
php ./migrateMenuEntities.php #php ./migrateMenuEntities.php
...@@ -19,6 +19,8 @@ foreach ($customs as $custom) { ...@@ -19,6 +19,8 @@ foreach ($customs as $custom) {
$xmlfile = simplexml_load_file($path); $xmlfile = simplexml_load_file($path);
if ($xmlfile) { if ($xmlfile) {
$i = 0;
foreach ($xmlfile->COLLECTION as $collection) { foreach ($xmlfile->COLLECTION as $collection) {
if ((string)$collection->table == 'res_letterbox') { if ((string)$collection->table == 'res_letterbox') {
$collId = 'letterbox_coll'; $collId = 'letterbox_coll';
...@@ -35,12 +37,18 @@ foreach ($customs as $custom) { ...@@ -35,12 +37,18 @@ foreach ($customs as $custom) {
'where' => ['docserver_type_id = ?', 'coll_id = ?'], 'where' => ['docserver_type_id = ?', 'coll_id = ?'],
'data' => ['FULLTEXT', $collId] 'data' => ['FULLTEXT', $collId]
]); ]);
unset($xmlfile->COLLECTION[$i]->path_to_lucene_index);
++$i;
} }
foreach ($xmlfile->MODULES as $key => $module) { $i = 0;
foreach ($xmlfile->MODULES as $module) {
if ((string)$module->moduleid == 'full_text') { if ((string)$module->moduleid == 'full_text') {
unset($xmlfile->MODULES[$key]); unset($xmlfile->MODULES[$i]);
break;
} }
++$i;
} }
$res = $xmlfile->asXML(); $res = $xmlfile->asXML();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment