Skip to content

Instantly share code, notes, and snippets.

@sevein
Created January 13, 2012 07:11
Show Gist options
  • Save sevein/1604971 to your computer and use it in GitHub Desktop.
Save sevein/1604971 to your computer and use it in GitHub Desktop.
Set data version
Index: lib/task/migrate/MigrateTask.class.php
===================================================================
--- lib/task/migrate/MigrateTask.class.php (revision 10579)
+++ lib/task/migrate/MigrateTask.class.php (working copy)
@@ -204,6 +204,8 @@
$dir = dirname($originalFileName);
$migratedFileName = $dir.DIRECTORY_SEPARATOR.$migratedFileName;
+ $this->setDataVersion();
+
$yamlDumper = new sfYamlDumper();
$yamlData = sfYaml::dump($this->data, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment