Skip to content

Commit 33a8c15

Browse files
authored
changed ENV prefix
1 parent 9f979c1 commit 33a8c15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/dbsync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@
5555
/**
5656
* Sets the default name for SQL file if --filename is not provided
5757
*/
58-
'defaultFileName' => env('DEFAULT_FILE_NAME', 'file.sql'),
58+
'defaultFileName' => env('REMOTE_DEFAULT_FILE_NAME', 'file.sql'),
5959
];

src/Console/DbSyncCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function handle(): bool
3131
$ignoreTables = explode(',', $ignore);
3232
$importSqlFile = config('dbsync.importSqlFile');
3333
$removeFileAfterImport = config('dbsync.removeFileAfterImport');
34-
$fileName = $this->argument('filename') ?? config('dbsync.defaultFileName');
34+
$fileName = $this->argument('filename') ?? config('dbsync.defaultFileName');
3535

3636
if (empty($host) || empty($username) || empty($database)) {
3737
$this->error("DB credentials not set, have you published the config and set ENV variables?");

0 commit comments

Comments
 (0)