diff --git a/app/Utils/SystemHealth.php b/app/Utils/SystemHealth.php index c4cc4e60c1bf..07aa4d698f03 100644 --- a/app/Utils/SystemHealth.php +++ b/app/Utils/SystemHealth.php @@ -82,12 +82,12 @@ class SystemHealth exec('node -v', $foo, $exitCode); if ($exitCode === 0) { - return $foo[0]; + return empty($foo[0]) ? 'Found node, but no version information' : $foo[0]; } } catch (\Exception $e) { - return false; + return false; } } @@ -98,12 +98,11 @@ class SystemHealth exec('npm -v', $foo, $exitCode); if ($exitCode === 0) { - return $foo[0]; + return empty($foo[0]) ? 'Found npm, but no version information' : $foo[0]; } }catch (\Exception $e) { - - return false; + return false; } } diff --git a/database/migrations/2020_08_18_140557_add_is_public_to_documents_table.php b/database/migrations/2020_08_18_140557_add_is_public_to_documents_table.php index 382ccf679fe6..61b2b88e07b9 100644 --- a/database/migrations/2020_08_18_140557_add_is_public_to_documents_table.php +++ b/database/migrations/2020_08_18_140557_add_is_public_to_documents_table.php @@ -13,6 +13,7 @@ class AddIsPublicToDocumentsTable extends Migration */ public function up() { + Schema::table('documents', function (Blueprint $table) { $table->boolean('is_public')->default(false); }); @@ -20,6 +21,19 @@ class AddIsPublicToDocumentsTable extends Migration Schema::table('backups', function (Blueprint $table) { $table->decimal('amount', 16, 4); }); + + Schema::table('invoices', function (Blueprint $table) { + $table->decimal('exchange_rate', 16, 4); + }); + + Schema::table('quotes', function (Blueprint $table) { + $table->decimal('exchange_rate', 16, 4); + }); + + Schema::table('credits', function (Blueprint $table) { + $table->decimal('exchange_rate', 16, 4); + }); + } /**