mirror of
https://github.com/opensolutions/ViMbAdmin.git
synced 2026-04-26 08:45:54 +03:00
[GH-ISSUE #91] 2.x to 3.x SQL migration #69
Labels
No labels
bug
feature
feature
improvement
improvement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ViMbAdmin-opensolutions#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dustinfarris on GitHub (Jun 10, 2014).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/91
I'd like to add this to the wiki, but I think someone else should look at it first. This worked for me.
I'm still kicking the tires and may have missed something critical; but this is working so far. Also, I had to reset the passwords for my admins. For whatever reason the copied passwords didn't seem to work even with the matching salts. Is a different encryption method being used now?
Note: if the mailbox copy complains about character encoding (as mine did) you can do this to align the collations (foreign keys have to be dropped first to do this):
@barryo commented on GitHub (Jun 10, 2014):
Thanks for this!
Put live at: https://github.com/opensolutions/ViMbAdmin/wiki/Migrate-from-ViMbAdmin2
@soalhn commented on GitHub (Sep 4, 2014):
There are 2 issues with this solution:
UPDATE domain SET alias_count = (SELECT COUNT(*) FROM alias WHERE alias.Domain_Id=domain.id AND address != goto);INSERT INTO vimbadmin.log (action, data, timestamp, Admin_id, Domain_id) SELECT old.action, old.data, old.timestamp, vimbadmin.admin.id, vimbadmin.domain.id FROM vimbold.log old JOIN vimbadmin.admin ON vimbadmin.admin.username = old.username JOIN vimbadmin.domain ON vimbadmin.domain.domain = old.domain;@barryo commented on GitHub (Sep 9, 2014):
Thanks @soalhn - wiki updated to reflect your comments.