3,035
edits
Line 10: | Line 10: | ||
The script is called migration.py and lives in svn at .../trunk/services/bin | The script is called migration.py and lives in svn at .../trunk/services/bin | ||
The script requires Python 2.4 to work correctly. Versions before 2.4 will likely produce syntax errors like this one: | |||
File "./migration.py", line 961 | |||
delimitedListOfVersionIdsThatShouldBeDeleted = ",".join((str(x.id) for x in newDB.executeSql("select v.id from versions v where addon_id in (%s)" % delimitedListOfAddons))) | |||
SyntaxError: invalid syntax | |||
The tests require the use of "generator expressions" that were not available until 2.4. | |||
Also, keep in mind that you shouldn't expect existing data in the target database to persist. You should run the script on a clean target database. | |||
The script has three Python library dependencies: | The script has three Python library dependencies: |
edits