added support for legacy tickets
This commit is contained in:
@@ -20,6 +20,12 @@ final class ImportLegacyHelpdeskCommand extends Command
|
||||
|
||||
public function handle(): int
|
||||
{
|
||||
if (! config('helpdesk.legacy.enabled', false)) {
|
||||
$this->error('Legacy Helpdesk support is disabled. Set HELPDESK_LEGACY_ENABLED=true to enable it.');
|
||||
|
||||
return self::FAILURE;
|
||||
}
|
||||
|
||||
$connectionName = (string) ($this->option('connection') ?: config('helpdesk.legacy_connection', config('database.default')));
|
||||
$source = DB::connection($connectionName);
|
||||
$schema = Schema::connection($connectionName);
|
||||
|
||||
Reference in New Issue
Block a user