Hi All,
I have a collection of dynamic migrations which all get their data from a single CSV file which is generating by running an external database export script. I want to call this script before doing the migration and I'm looking for some advice as to how best to do this.
As all the migrations all use the same source file I was thinking that I should define running this script as a separate migration that the other migrations depend on. Do I have to create a new MigrateSource and maybe use a file as the destination type? Or should I just do this using MigrationBase and only return TRUE isComplete when the file is downloaded as in WinePrepMigration in wine.inc in the migration examples?
Thanks in advance for your help.
Cheers,
Kehan
Comments
Comment #1
mikeryanThat sounds like an perfect application for MigrationBase.
Comment #2
kehan commentedThanks for confirming my suspicion.
Cheers,
K