mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Add exchange_rate to entities
This commit is contained in:
parent
b2d5a8b070
commit
92036b74af
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user