Fixed some db bugs. These will only pop up when developing.

This commit is contained in:
James Cole 2016-09-16 07:16:09 +02:00
parent 2f93784acd
commit 9ffc5d857c
4 changed files with 9 additions and 9 deletions

View File

@ -113,7 +113,7 @@ class TestData
'title' => Crypt::encrypt($attachment['title']),
'description' => Crypt::encrypt($attachment['description']),
'notes' => Crypt::encrypt($attachment['notes']),
'mime' => Crypt::encrypt($attachment['mime']),
'mime' => $attachment['mime'],
'size' => strlen($attachment['content']),
'uploaded' => 1,
]

View File

@ -23,7 +23,7 @@ class CreateUsersTable extends Migration
$table->string('email', 255);
$table->string('password', 60);
$table->string('remember_token', 100);
$table->string('reset', 32);
$table->string('reset', 32)->nullable();
$table->tinyInteger('blocked', false, true)->default('0');
$table->string('blocked_code', 25)->nullable();
}

View File

@ -78,7 +78,7 @@ class CreateMainTables extends Migration
$table->integer('account_type_id', false, true);
$table->string('name', 1024);
$table->decimal('virtual_balance', 10, 4);
$table->string('iban', 255);
$table->string('iban', 255)->nullable();
$table->boolean('active')->default(1);
$table->boolean('encrypted')->default(0);
@ -612,7 +612,7 @@ class CreateMainTables extends Migration
$table->softDeletes();
$table->integer('account_id', false, true);
$table->integer('transaction_journal_id', false, true);
$table->string('description', 255);
$table->string('description', 1024)->nullable();
$table->decimal('amount', 10, 4);
$table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade');

View File

@ -14,11 +14,11 @@ class DatabaseSeeder extends Seeder
*/
public function run()
{
$this->call('AccountTypeSeeder');
$this->call('TransactionCurrencySeeder');
$this->call('TransactionTypeSeeder');
$this->call('PermissionSeeder');
$this->call('TestDataSeeder');
$this->call(AccountTypeSeeder::class);
$this->call(TransactionCurrencySeeder::class);
$this->call(TransactionTypeSeeder::class);
$this->call(PermissionSeeder::class);
$this->call(TestDataSeeder::class);
}
}