Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed some db bugs. These will only pop up when developing.
James Cole9ffc5d857c17
diff --git a/app/Support/Migration/TestData.php b/app/Support/Migration/TestData.phpindex 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.phpindex 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.phpindex 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.phpindex 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);}}