@@ -20,12 +20,12 @@ class DbUpgradeCommand extends Command
2020 /**
2121 * @var string
2222 */
23- const UPGRADE_CONTENT_FILENAME = 'content.sql ' ;
23+ protected const UPGRADE_CONTENT_FILENAME = 'content.sql ' ;
2424
2525 /**
2626 * @var string
2727 */
28- const UPGRADE_BACKUP_FILENAME = 'backup.sql ' ;
28+ protected const UPGRADE_BACKUP_FILENAME = 'backup.sql ' ;
2929
3030 /**
3131 * The name and signature of the console command.
@@ -309,7 +309,7 @@ protected function importContent(): void
309309 $ config = $ this ->getDatabaseConfig ();
310310 $ contentFile = $ this ->getTemporaryUpgradePath (static ::UPGRADE_CONTENT_FILENAME );
311311
312- $ command = 'cat " ' . $ contentFile . '" | " ' .$ this ->commandMysql .
312+ $ command = 'cat " ' . $ contentFile . '" | " ' . $ this ->commandMysql .
313313 '" -h " ' . $ config ['host ' ] .
314314 '" -u " ' . $ config ['username ' ] . '" ' .
315315 ($ config ['password ' ] ? '-p" ' . $ config ['password ' ] . '" ' : '' ) .
@@ -358,7 +358,7 @@ protected function checkExistingDatabase(): void
358358
359359 foreach ($ this ->getExpectedTables () as $ table ) {
360360 if (! Schema::hasTable ($ table )) {
361- throw new PreConditionNotMetException ('Could not find required table " ' . $ table .'". ' );
361+ throw new PreConditionNotMetException ('Could not find required table " ' . $ table . '". ' );
362362 }
363363 }
364364 }
@@ -373,7 +373,7 @@ protected function getTemporaryUpgradePath($path = null): string
373373 $ this ->temporaryPathPrefix = now ()->toDateTimeString ();
374374 }
375375
376- return storage_path (rtrim ('upgrade- ' . $ this ->temporaryPathPrefix .'/ ' . $ path , '/ ' ));
376+ return storage_path (rtrim ('upgrade- ' . $ this ->temporaryPathPrefix . '/ ' . $ path , '/ ' ));
377377 }
378378
379379 /**
0 commit comments