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