1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00

Minor fixes for migration

This commit is contained in:
David Bomba 2021-03-30 20:29:20 +11:00
parent d08b6e874f
commit ce18449cc7

View File

@ -2,18 +2,19 @@
namespace App\Http\Controllers\Migration; namespace App\Http\Controllers\Migration;
use App\Http\Controllers\BaseController;
use App\Http\Requests\MigrationAuthRequest;
use App\Http\Requests\MigrationCompaniesRequest;
use App\Http\Requests\MigrationEndpointRequest;
use App\Http\Requests\MigrationTypeRequest;
use App\Libraries\Utils; use App\Libraries\Utils;
use App\Models\Account;
use App\Services\Migration\AuthService;
use App\Services\Migration\CompanyService;
use App\Services\Migration\CompleteService;
use App\Traits\GenerateMigrationResources; use App\Traits\GenerateMigrationResources;
use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Auth;
use App\Services\Migration\AuthService; use Illuminate\Support\Facades\Storage;
use App\Http\Controllers\BaseController;
use App\Services\Migration\CompanyService;
use App\Http\Requests\MigrationAuthRequest;
use App\Http\Requests\MigrationTypeRequest;
use App\Services\Migration\CompleteService;
use App\Http\Requests\MigrationEndpointRequest;
use App\Http\Requests\MigrationCompaniesRequest;
use App\Models\Account;
class StepsController extends BaseController class StepsController extends BaseController
{ {
@ -252,7 +253,10 @@ class StepsController extends BaseController
$localMigrationData['force'] = array_key_exists('force', $company) ? true : false; $localMigrationData['force'] = array_key_exists('force', $company) ? true : false;
$file = storage_path("migrations/{$fileName}.zip"); Storage::makeDirectory('migrations');
$file = Storage::path("migrations/{$fileName}.zip");
//$file = storage_path("migrations/{$fileName}.zip");
ksort($localMigrationData); ksort($localMigrationData);