Upgrading Typo3 from 6.1.x to 6.2 and keeping the direct_mail data
I seem to be missing an idea how to upgrade from Typo3 6.1 to 6.2, without losing the data of direct_mail 3.1.2.
This is what I tried:
I cannot upgrade to direct_mail 4.0.0 in 6.1.10, because 4.0.0 is only for >= 6.2
Upgrading from 6.1.10 to 6.2.6: the install tool tells me that direct_mail 3.1.2 is not compatible with 6.2.
So I have to remove the extension, and all data is lost, when I later install direct_mail 4.0.0
Alternatively, I tried to delete the typo3_conf/ext/direct_mail directory, before upgrading to 6.2. Then the upgrade worked, but I got an PHP error later on: Call to a member function isEnvironmentInFrontendMode() on a non-object in typo3/sysext/extbase/Classes/Configuration/ConfigurationManager.php
I even replaced the old typo3conf/ext/direct_mail directory with the direct_mail 4.0.0 directory, but still get the same PHP error.
Is there an upgrade path?
Or even a dirty workaround of restoring tables after the upgrade?
Thanks for any suggestions!
#1 Updated by Paul Hansen almost 5 years ago
Hello Timotheus, the only way the tables should be gone is if you removed the tables using the installtool. I had a TYPO3 6.1 website with direct_mail 3.1.2, uninstalled the extension, ran the 6.2 upgrade, then installed direct_mail 4.0.0 fresh from the TER and its 500k direct_mail-related records were intact and showing in the backend. I added the uninstall step to my upgrades because there are no incompatibility concerns, and I'm confident that the data won't disappear.
#2 Updated by Timotheus Pokorra almost 5 years ago
- % Done changed from 0 to 100
thank you for your reply.
You are right, I must have deleted the tables in the install tool myself.
If I run the upgrade tool only, all data remains intact for direct_mail.
Thanks again for your help, it is much appreciated!
#3 Updated by Ivan Dharma Kartolo almost 5 years ago
- Status changed from New to Closed
you need only to deactivate direct_mail. After upgrading to 6.2, update and then activate direct_mail.
and when you compare the database in install tool, please read which table and column install tool wants to remove... just blindly clicking all checkbox and execute them, is not a smart move :)