Fix for tests

This commit is contained in:
Hillel Coren 2017-05-01 13:08:39 +03:00
parent b3f53b99fa
commit a52d6a537d
2 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class PurgeAccountData extends Job
$current = config('database.default');
config(['database.default' => DB_NINJA_LOOKUP]);
$lookupAccount = LookupAccount::whereAccountKey($account->account_key)->first();
$lookupAccount = LookupAccount::whereAccountKey($account->account_key)->firstOrFail();
DB::table('lookup_contacts')->where('lookup_account_id', '=', $lookupAccount->id)->delete();
DB::table('lookup_invitations')->where('lookup_account_id', '=', $lookupAccount->id)->delete();

View File

@ -51,6 +51,7 @@ class AddMultipleDatabaseSupport extends Migration
DB::table('db_servers')->insert(
['name' => 'db-server-1']
);
}
/**
* Reverse the migrations.