Before starting to migrate, make sure that table #__spupgrade_log is empty. After you have migrated some data, do not remove any entries, as they tell SP Upgrade when to transfer new entries.
mysql --user=user --password use db
SELECT GROUP_CONCAT(id) FROM btc_content where catid=1 group by catid UPDATE btc_content SET catid=11 WHERE id IN ()
Category | Joomla 1.5 | Joomla 3.9 |
---|---|---|
News | 1 | 10 |
Announcements | 2 | 11 |
Info | 3 | 12 |
Meeting | 4 | 13 |
Hall of fame | 6 | 14 |
About | 7 | 15 |
Home | - | 16 |
Uncategorized | - | 2 |
We migrate CCB Forum to Kunena Forum. CCB was not very popular, there exist no migration tools, however I found that the people who developed Kunena must have taken CCB as a basis for the development. Too many field names and structure are identical, so the task is doable without developing a complicated migration tool.
UPDATE #__ccb_topics_migrate SET forum_id=new WHERE forum_id=old
INSERT INTO `#__ccb_topics` (`id`, `forum_id`, `post_subject`, `reply_count`, `hits`, `post_time`, `post_user`, `last_post_time`, `last_post_id`, `last_post_user`, `start_post_id`, `topic_type`, `locked`, `topic_email`, `hold`, `topic_emoticon`, `post_username`, `last_post_username`, `topic_favourite`) VALUES INSERT INTO `#__kunena_topics` (`id`, `category_id`, `subject`, `posts`, `hits`, `first_post_time`, `first_post_userid`, `last_post_time`, `last_post_id`, `last_post_userid`, `first_post_id`, `first_post_message`, `locked`, `last_post_message`, `hold`, `icon_id`, `first_post_guest_name`, `last_post_guest_name`, `params`) VALUES
UPDATE `#__kunena_topics` SET first_post_message=`` UPDATE `#__kunena_topics` SET last_post_message=`` UPDATE `#__kunena_topics` SET params=``
UPDATE #__ccb_posts_messages SET forum_id=new WHERE forum_id=old
INSERT INTO `ipl_ccb_posts_messages` (`id`, `topic_id`, `forum_id`, `post_subject`, `post_user`, `post_time`, `ip`, `hold`, `modified_by`, `modified_time`, `modified_reason`, `post_username`) VALUES INSERT INTO `ipl_kunena_messages` (`id`, `thread`, `catid`, `subject`, `userid`, `time`, `ip`, `hold`, `modified_by`, `modified_time`, `modified_reason`, `name`) VALUES
INSERT INTO `ipl_ccb_posts_migrate_text` (`id`, `post_text`) VALUES INSERT INTO `ipl_kunena_messages_text` (`mesid`, `message`) VALUES
To migrate the betico league tables, export them according to the table below from the old db, then import into the new db. Not all tables need to be transferred, and some tables require column name modification.
table name 1.5 | table name 3.9 | modifications | multi-league unified ratings | multi-league separate ratings |
---|---|---|---|---|
ipl_ipl_access | deprecated | |||
ipl_ipl_arbitrary | btc_bethico_arbitrary | |||
ipl_ipl_bar | btc_bethico_bar | view | view | |
ipl_ipl_brackets | btc_bethico_brackets | |||
new | btc_bethico_calc_config | |||
new | btc_bethico_calc_points | |||
ipl_ipl_comment | btc_bethico_comment | |||
ipl_ipl_config | btc_bethico_config | dart_league → league file_suffix → league_code | ||
new | btc_bethico_config_time | |||
ipl_ipl_contactus | btc_bethico_contactus | |||
ipl_ipl_date | btc_bethico_date | view | view | |
ipl_ipl_division | btc_bethico_division | |||
new | btc_bethico_fees | |||
new | btc_bethico_function | |||
ipl_ipl_forum | deprecated | |||
ipl_ipl_game | btc_bethico_game | view | ||
ipl_ipl_league | btc_bethico_league | |||
ipl_ipl_map | btc_bethico_map | view | view | |
ipl_ipl_marks | btc_bethico_marks | |||
ipl_ipl_match | btc_bethico_match | view | ||
ipl_ipl_menu | deprecated | |||
ipl_ipl_olddb_player | btc_bethico_olddb_player | |||
ipl_ipl_olddb_team | btc_bethico_olddb_team | |||
ipl_ipl_player | btc_bethico_player | new: function_id | view | view |
ipl_ipl_player_game | btc_bethico_player_game | view | ||
ipl_ipl_player_team_season | btc_bethico_player_team_season | |||
ipl_ipl_playoff | btc_bethico_playoff | |||
ipl_ipl_season | btc_bethico_season | view | view | |
ipl_ipl_site | btc_bethico_site | view | ||
ipl_ipl_team | btc_bethico_team | |||
ipl_ipl_team_season | btc_bethico_team_season | new: captain_id | ||
ipl_ipl_tournament | btc_bethico_tournament | view | ||
ipl_session | ipl_session | view | view | |
ipl_users | ipl_users | view | view | |
ipl_stats_agents | ipl_usergroups | view | view | |
ipl_core_acl_aro | ipl_user_notes | view | view | |
ipl_core_acl_aro_groups | ipl_user_profiles | view | view | |
ipl_core_acl_aro_map | ipl_user_usergroup_map | view | view | |
ipl_core_acl_aro_sections | ipl_viewlevels | view | view | |
ipl_core_acl_groups_aro_map | view | view |