Příspěvky uživatele Visvanath Ratnaweera

Obrázek: Particularly helpful Moodlers Obrázek: Translators
Upgrading and cleaning is out of the question. Why? Then I can as well clean the current version.

Let's see, whether somebody knows the database model to explain why my original idea, https://moodle.org/mod/forum/discuss.php?d=474327, does not work and how to correct it.
Obrázek: Particularly helpful Moodlers Obrázek: Translators
Ken

Thanks for the hot tip! Hot, but not yet there.

Did 'moosh category-export 0 > categories.xml' in the source Moodle and 'moosh category-import categories.xml' and got a working site with identical course categories structure. But there is a problem the new course categories have new ids. For example, category Grundlagen from "(31,'Grundlagen','','',1,0,10000,0,1,1,1540889739,1,'/31',NULL)" now has id=2, not 31.

I see that the XML has content like "category oldid='257' name='Physics'". But it looks like this oldid is just informative. The id of the category Physics is something else, the auto-increment value it gets. I need to force the id in this case to 257.
 
From the definition of the table, I am pessimistic. Remember, " `id` bigint(10) NOT NULL AUTO_INCREMENT,"?