From 8d86c5e072420dfb9c90322987c5a8c7d3e53745 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Tue, 2 Aug 2016 11:00:39 +0100 Subject: [PATCH] Ignore SQLite databases when backing up the db --- app/Subscribers/CommandSubscriber.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Subscribers/CommandSubscriber.php b/app/Subscribers/CommandSubscriber.php index accddefe..64ab0a14 100644 --- a/app/Subscribers/CommandSubscriber.php +++ b/app/Subscribers/CommandSubscriber.php @@ -83,6 +83,13 @@ class CommandSubscriber $command->line('Settings cache cleared!'); + // SQLite does not backup. + if ($this->config->get('database.default') === 'sqlite') { + $command->line('Backup skipped: SQLite is not supported.'); + + return; + } + $command->line('Backing up database...'); try {