diff --git a/src/IDF/Migrations/Backup.php b/src/IDF/Migrations/Backup.php new file mode 100644 index 0000000..7b6af71 --- /dev/null +++ b/src/IDF/Migrations/Backup.php @@ -0,0 +1,109 @@ +model = new $model(); + $schema->createTables(); + } + $full_data = json_decode(file_get_contents(sprintf('%s/%s-IDF.json', $folder, $name)), true); + foreach ($full_data as $model => $data) { + Pluf_Test_Fixture::load($data, false); + } + return true; +} \ No newline at end of file