Path

ez projects / ezgmaplocation_upgrade_from...


ezgmaplocation upgrade from v0.5 to v1.0

UNIX name Owner Status Version Compatible with
ezgmaplocation_upgrade_from_v0.5_to_v1.0 Vjeran Vlahovic stable N/A 4.x

This scripts migrates data from old ezgmaplocation datatype ( tested with
v0.5) to a new officially supported ezgmaplocation datatype (v1.0)

This scripts migrates data from old ezgmaplocation datatype ( tested with
v0.5) to a new officially supported ezgmaplocation datatype
(v1.0)
Step by step instructions
1. Inside old extension (gmapslocation v0.5) change all words from
ezgmaplocation to ezoldgmaplocation (including class names, settings
values, identifiers, etc.)
2. Inside old extension (gmapslocation v0.5) rename all files and
folders (ezgmaplocation to ezgmapoldlocation)
3. Make a sql dump and change ezgmaplocation to ezoldgmaplocation,
e.g.
perl -pi -e 's/ezgmaplocation/ezoldgmaplocation/g' db_dump.sql
4. Restore database
5. Install and activate new extension (v1.0)
6. Clear all caches and regenerate autoload array
7. Add new gmapslocation attribute inside your class and store draft
(if you have small number of objects, you can save changes
immediately and skip to step 9)
8. Use addmissingobjectattributes.php to change all objects
9. Run (change values to fit your needs) :
php ngmigrategmapdata.php --class-id=22 --old-attribute=ezgmaps_location
--new-attribute=ezgmap_location
10. Delete old attribute inside your class (Use
addmissingobjectattributes.php if you have too many objects)
11. Deactivate old extension
12. Change the class identifier of the new attribute to the identifier
of the old one to avoid changing templates
13. Clear cache and regenerate autoload arrray

Screenshot

No news yet.

This project has no reviews yet. Be the first one to review it!

No forum messages yet.