Call ksort correctly for migration files
This commit is contained in:
parent
61d3737816
commit
f3dcd2924c
1 changed files with 3 additions and 1 deletions
|
|
@ -252,9 +252,11 @@ class StepsController extends BaseController
|
||||||
|
|
||||||
$file = storage_path("migrations/{$fileName}.zip");
|
$file = storage_path("migrations/{$fileName}.zip");
|
||||||
|
|
||||||
|
ksort($localMigrationData);
|
||||||
|
|
||||||
$zip = new \ZipArchive();
|
$zip = new \ZipArchive();
|
||||||
$zip->open($file, \ZipArchive::CREATE | \ZipArchive::OVERWRITE);
|
$zip->open($file, \ZipArchive::CREATE | \ZipArchive::OVERWRITE);
|
||||||
$zip->addFromString('migration.json', json_encode(ksort($localMigrationData), JSON_PRETTY_PRINT));
|
$zip->addFromString('migration.json', json_encode($localMigrationData, JSON_PRETTY_PRINT));
|
||||||
$zip->close();
|
$zip->close();
|
||||||
|
|
||||||
$localMigrationData['file'] = $file;
|
$localMigrationData['file'] = $file;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue