mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-23 15:40:32 -06:00
Fixed some db bugs. These will only pop up when developing.
This commit is contained in:
parent
2f93784acd
commit
9ffc5d857c
@ -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,
|
||||
]
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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');
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user