Skip to content

Commit

Permalink
typo corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
dcblogdev committed Jun 26, 2022
1 parent 5abe51d commit 6191651
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/dbsync.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
/**
* Sets if the exported SQL file will be imported into the current database connection
*/
'ImportSqlFile' => env('REMOTE_IMPORT_FILE', 'true'),
'importSqlFile' => env('REMOTE_IMPORT_FILE', 'true'),

/**
* Sets if the generated file.sql will be deleted after it has been imported.
Expand Down
6 changes: 3 additions & 3 deletions src/Console/DbSyncCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public function handle(): bool
$password = config('dbsync.password');
$ignore = config('dbsync.ignore');
$ignoreTables = explode(',', $ignore);
$ImportSqlFile = config('dbdync.ImportSqlFile');
$removeFileAfterImport = config('dbdync.removeFileAfterImport');
$importSqlFile = config('dbsync.importSqlFile');
$removeFileAfterImport = config('dbsync.removeFileAfterImport');

if (empty($host) || empty($username) || empty($database)) {
$this->error("DB credentials not set, have you published the config and set ENV variables?");
Expand All @@ -52,7 +52,7 @@ public function handle(): bool

$this->comment(implode(PHP_EOL, $output));

if ($ImportSqlFile === true) {
if ($importSqlFile === true) {
DB::unprepared(file_get_contents(base_path('file.sql')));
}

Expand Down

0 comments on commit 6191651

Please sign in to comment.