Posted: November 4, 2014 at 7:12 pm
|
We have a staging and production environments, both using EE4 (4.4.3). In staging we’ve done some changes and we would like to test those with all registrants that registered to various events on the production site (in the last couple of weeks while we were working on staging). Is there a way to copy one or more tables from the production database to staging database so that only Registrants are updated in staging without affecting any other developments we’ve done? Events on staging were not affected by any new developments, they are the same as those in production. |
Hi Bogdan, On the latter part of your question: Are you asking about moving code changes from staging to production, or changes to the database? Merging changes from one database to another is tricky and I wouldn’t recommend it. The tool I can recommend for moving data back and forth between staging and live is the WP Migrate DB Pro. It allows for pulling in data from production to staging. |
|
|
Hi Josh, Production has now 158 registrants in one event and 85 registrants in another event. Staging has an earlier number of registrants for those 2 events (68 and 43) plus additional changes (we implemented your advice from a different post to give access to employees in our company only to events, no WP platform, we added several new events that we would like to push live, we have more info on our News section – that is WP – and in several other parts of our website like partners, F.A.Q, … etc – WP again). What is my best option here to move all changes from staging to production and keeping production registrants untouched? I looked at your recommendation (WP Migrate DB Pro) and it seems there are moments when the same question of what tables should I backup or migrate is still there. I don’t mind getting the WP migrate DB Pro but I prefer doing that after I understand how exactly it will help me achieve my goal. |
Hi Bogdan, The only reliable readymade solution to sync data bases as you’ve described, that I’m aware of, is manually add your changes (like new posts) to production. part of the reason for this is EE4 writes a lot of its event data to the same WP table that posts are written to. Then, once everything from staging is on production, you use wpmigratedb pro to sync everything on production back to staging. Another potential solution would be to build a custom system on top of Ramp. |
|
|
Hi Josh, Many thanks. Purchased WP Migrate DB but after a few tests we are not any further than before. I also contacted crowdfavorite for RAMP and waiting a response from them. |
Hi Bogdan, You are going to encounter problems with syncing any ecommerce type data using this approach. This is because of the relationships that get set up between things like posts, events, registrations, transactions, contacts, and answers to registration form questions. There are ways to avoid making database conflicts discussed in this article: https://deliciousbrains.com/avoiding-wordpress-database-merging/ |
|
The support post ‘Copy Event Registrants from Production to Staging’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.