diff --git a/app/Support/Migration/TestData.php b/app/Support/Migration/TestData.php index a71e4f0710..e8ea752208 100644 --- a/app/Support/Migration/TestData.php +++ b/app/Support/Migration/TestData.php @@ -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, ] diff --git a/database/migrations/2016_06_16_000001_create_users_table.php b/database/migrations/2016_06_16_000001_create_users_table.php index 82e5af99fc..e6803f03fc 100644 --- a/database/migrations/2016_06_16_000001_create_users_table.php +++ b/database/migrations/2016_06_16_000001_create_users_table.php @@ -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(); } diff --git a/database/migrations/2016_06_16_000002_create_main_tables.php b/database/migrations/2016_06_16_000002_create_main_tables.php index 9b05b858f3..4fa931431f 100644 --- a/database/migrations/2016_06_16_000002_create_main_tables.php +++ b/database/migrations/2016_06_16_000002_create_main_tables.php @@ -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'); diff --git a/database/seeds/DatabaseSeeder.php b/database/seeds/DatabaseSeeder.php index ac4d0a7aa5..4558e173da 100755 --- a/database/seeds/DatabaseSeeder.php +++ b/database/seeds/DatabaseSeeder.php @@ -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); } }