mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 05:54:34 -04: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);
|
exec('node -v', $foo, $exitCode);
|
||||||
|
|
||||||
if ($exitCode === 0) {
|
if ($exitCode === 0) {
|
||||||
return $foo[0];
|
return empty($foo[0]) ? 'Found node, but no version information' : $foo[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -98,12 +98,11 @@ class SystemHealth
|
|||||||
exec('npm -v', $foo, $exitCode);
|
exec('npm -v', $foo, $exitCode);
|
||||||
|
|
||||||
if ($exitCode === 0) {
|
if ($exitCode === 0) {
|
||||||
return $foo[0];
|
return empty($foo[0]) ? 'Found npm, but no version information' : $foo[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
}catch (\Exception $e) {
|
}catch (\Exception $e) {
|
||||||
|
return false;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,7 @@ class AddIsPublicToDocumentsTable extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
|
|
||||||
Schema::table('documents', function (Blueprint $table) {
|
Schema::table('documents', function (Blueprint $table) {
|
||||||
$table->boolean('is_public')->default(false);
|
$table->boolean('is_public')->default(false);
|
||||||
});
|
});
|
||||||
@ -20,6 +21,19 @@ class AddIsPublicToDocumentsTable extends Migration
|
|||||||
Schema::table('backups', function (Blueprint $table) {
|
Schema::table('backups', function (Blueprint $table) {
|
||||||
$table->decimal('amount', 16, 4);
|
$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…
x
Reference in New Issue
Block a user