MountainClimb / datanucleus-appengine

Automatically exported from code.google.com/p/datanucleus-appengine
0 stars 0 forks source link

Provide Migrator tool for moving StorageVersion from "children identified by parent key" to "child keys in parent" #254

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
User wants to identify the persistable classes they have, and migrate all data 
for each one (in StorageVersion 1 format) to the new (StorageVersion 2) format.

1. Create NucleusContext so we have access to the metadata for the classes
2. Cycle through all classes that have children.
3. For each class with children, load up the Entity, add a property for the 
child keys, and PUT the Entity.

Original issue reported on code.google.com by googleco...@yahoo.co.uk on 28 Sep 2011 at 7:56

GoogleCodeExporter commented 8 years ago
SVN trunk has the file V2_DATA_MIGRATION.txt which defines a method of 
migrating data for a particular class. Repeat for all model classes. Sadly the 
Google Mapper API is little documented, and relatively little developed to 
provide exactly what we need here.

Original comment by googleco...@yahoo.co.uk on 1 Jan 2012 at 6:21

GoogleCodeExporter commented 8 years ago
SVN trunk now has tests for the basic "Migrator.migrate" for 1-1 and 1-N 
relations that were using the old storage version.

Original comment by googleco...@yahoo.co.uk on 4 Jan 2012 at 7:45