Hell yes! Success!
Not all apps were used in my 1.8.007 install, and others like bookmarks hadn’t been used in years, so I skipped updating those. But addressbook, calendar, infolog, knowledge base, global categories, phpbrain (still not sure how to display in 23.1), etc… all migrated fine manually. The global categories ave an issue in 23.1 not showing some of the old, but that’s for another question.
(sorry Ralf, looks like your account on the server expired on 2008/08/30
)
For anyone who has the setup/
upgrade fail, here is a summary of how I manually migrated 1.8.007 database to the current 23.1
,
egw231 - copy of 23.1 database to insert into
egwmigrate - copy of 1.8.007 database to select from
egw_access_log:
MariaDB [egw231]> alter table egwmigrate.egw_access_log add user_agent varchar(255) default NULL;
MariaDB [egw231]> insert into egw_access_log select * from egwmigrate.egw_access_log;
egw_accounts:
MariaDB [egw231]> alter table egwmigrate.egw_accounts add account_description varchar(255) default NULL;
MariaDB [egw231]> alter table egwmigrate.egw_accounts drop column account_challenge;
MariaDB [egw231]> alter table egwmigrate.egw_accounts drop column account_response;
insert ignore into egw_accouts select * from egwmigrate.egw_accounts;
MariaDB [egw231]> insert ignore into egw_accounts select * from egwmigrate.egw_accounts;
egw_acl: (no change - no records)
egw_addressbook:
MariaDB [egw231]> alter table egwmigrate.egw_addressbook drop column contact_jpegphoto;
MariaDB [egw231]> alter table egwmigrate.egw_addressbook add contact_files tinyint default 0;
MariaDB [egw231]> insert ignore into egw_addressbook select * from egwmigrate.egw_addressbook;
egw_addressbook2list:
MariaDB [egw231]> insert into egw_addressbook2list select * from egwmigrate.egw_addressbook2list;
egw_addressbook_extra: (no change - no records)
egw_addressbook_lists:
MariaDB [egw231]> insert into egw_addressbook_lists (list_id, list_name, list_owner, list_created, list_creator) select list_id, list_name, list_owner, list_created, list_creator from egwmigrate.egw_addressbook_lists;
egw_admin_queue: (no change - no records)
egw_admin_remote: (no change - no records)
egw_applications: (no change - apps handled per-install fine)
egw_async: (no change, no update, a few alarms likely in past by time of data migration)
egw_bookmarks: (not transfered - way out of date, most are 404)
egw_cal:
MariaDB [egw231]> alter table egwmigrate.egw_cal add range_start bigint default NULL;
(table definition should be default 0)
MariaDB [egw231]> alter table egwmigrate.egw_cal add range_end bigint default NULL;
MariaDB [egw231]> update egwmigrate.egw_cal set range_start=1;
MariaDB [egw231]> insert into egw_cal select * from egwmigrate.egw_cal;
egw_cal_dates:
MariaDB [egw231]> alter table egwmigrate.egw_cal_dates add recur_exception tinyint default 0;
MariaDB [egw231]> insert into egw_cal_dates select * from egwmigrate.egw_cal_dates;
egw_cal_extra: (no change - no records)
egw_cal_holidays: (no change - no records)
egw_cal_repeats: (no change - all enddates in the past)
egw_cal_timezones: (no change)
egw_cal_user:
MariaDB [egw231]> insert into egw_cal_user (cal_id, cal_recur_date, cal_user_type, cal_user_id, cal_status, cal_quantity, cal_role, cal_user_modified) select cal_id, cal_recur_date, cal_user_type, cal_user_id, cal_status, cal_quantity, cal_role, cal_user_modified from egwmigrate.egw_cal_user;
egw_cat2entry: (no change - table dropped)
egw_categories:
MariaDB [egw231]> insert ignore into egw_categories select * from egwmigrate.egw_categories;
Need to Manually Add in 23.1:
| 6 | 6 | 0 | 0 | Feature Requests |
| 7 | 7 | 0 | 0 | Bugs |
egw_config: (no change - config for current version)
egw_contentmap: (no change)
egw_emailadmin: (table dropped - now egw_ea_...)
egw_customfields: (new table)
egw_ea_accounts: (new table)
egw_ea_credentials: (new table)
egw_ea_identities: (new table)
egw_ea_notifications: (new table)
egw_ea_valid: (new table)
egw_etemplate: (not used, last update Tue 12 Jun 2012 04:48:04 PM CDT)
egw_felamimail_accounts: (table dropped)
egw_felamimail_displayfilter: (table dropped)
egw_felamimail_signatures: (table dropped)
egw_history_log:
MariaDB [egw231]> insert into egw_history_log (history_record_id, history_appname, history_owner, history_status, history_new_value, history_timestamp, history_old_value) select history_record_id, history_appname, history_owner, history_status, history_new_value, history_timestamp, history_old_value from egwmigrate.egw_history_log;
egw_importexport_definitions: (no need to change)
egw_index: (table dropped)
egw_index_keywords: (table dropped)
egw_infolog_xxx: (all tables skipped - no current open on home server)
egw_kb_articles:
MariaDB [egw231]> insert into egw_kb_articles select * from egwmigrate.egw_kb_articles;
egw_kb_comment: (nothing to migrate)
egw_kb_questions: (nothing to migrate)
egw_kb_ratings: (nothing to migrate)
egw_kb_related_art: (nothing to migrate)
egw_kb_search:
MariaDB [egw231]> insert into egw_kb_search select * from egwmigrate.egw_kb_search;
egw_kb_urls: (skipped - 404)
egw_lang: (skipped - version tables fine)
egw_languages: (skipped - version tables fine)
egw_locks: (nothing to migrate)
egw_mailaccounts: (nothing to migrate)
egw_notificationpopup: (nothing to migrate)
egw_openid_xxx: (no change new tables)
egw_pm_xxx: (no change, no open pm on home server)
egw_preferences: (skipped - version tables fine)
egw_reg_accounts: (nothing to migrate)
egw_resources_xxx: (nothing to migrate)
egw_sitemgr_xxx: (nothing to migrate)
egw_sqlfs_xxx: (nothing to migrate)
egw_timesheet: (nothing to migrate)
egw_timesheet_extra: (nothing to migrate)
egw_tracker_xxx: (nothing to migrate)
egw_wiki_xxx: (nothing to migrate)
done
If you just use column specific insert
and select
statements you can dispense with altering the old table to add/drop columns. However the insert into new_table select * from olddb.old_table;
is worth a quick add column or two for the simplicity. Also, don’t overlook the insert ignore ...
use where existing records were preserved by skipping on insert from the old table.
Now if I can just make idots work :)
P.S. - In 1.8.007 global categories had cat_owener
of 5
. Updating all in the database to cat_owner
of 0
and then adding 1 new category in 23.1 - then all migrated categories reappeared - like magic.