Clean up TestData

This commit is contained in:
James Cole 2016-02-12 05:29:41 +01:00
parent 2e15f1e2a3
commit 68a7078614
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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();