mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Clean up TestData
This commit is contained in:
parent
2e15f1e2a3
commit
68a7078614
@ -417,8 +417,7 @@ class TestData
|
||||
]
|
||||
);
|
||||
if ($journal->id) {
|
||||
$number = (string)round((rand(1500, 2500) / 100), 2);
|
||||
$amount = $number;//'10';//strval((rand(1500, 2500) / 100));
|
||||
$amount = (string)round((rand(1500, 2500) / 100), 2);
|
||||
self::createTransactions($journal, $fromAccount, $toAccount, $amount);
|
||||
$journal->categories()->save($category);
|
||||
$journal->budgets()->save($budget);
|
||||
|
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
/**
|
||||
* @SuppressWarnings(PHPMD.ShortMethodName)
|
||||
@ -29,7 +30,7 @@ class CreateSessionTable extends Migration
|
||||
public function up()
|
||||
{
|
||||
Schema::create(
|
||||
'sessions', function ($table) {
|
||||
'sessions', function (Blueprint $table) {
|
||||
$table->string('id')->unique();
|
||||
$table->integer('user_id')->nullable();
|
||||
$table->string('ip_address', 45)->nullable();
|
||||
|
Loading…
Reference in New Issue
Block a user