mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for tests
This commit is contained in:
parent
b3f53b99fa
commit
a52d6a537d
@ -63,7 +63,7 @@ class PurgeAccountData extends Job
|
|||||||
$current = config('database.default');
|
$current = config('database.default');
|
||||||
config(['database.default' => DB_NINJA_LOOKUP]);
|
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_contacts')->where('lookup_account_id', '=', $lookupAccount->id)->delete();
|
||||||
DB::table('lookup_invitations')->where('lookup_account_id', '=', $lookupAccount->id)->delete();
|
DB::table('lookup_invitations')->where('lookup_account_id', '=', $lookupAccount->id)->delete();
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@ class AddMultipleDatabaseSupport extends Migration
|
|||||||
DB::table('db_servers')->insert(
|
DB::table('db_servers')->insert(
|
||||||
['name' => 'db-server-1']
|
['name' => 'db-server-1']
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reverse the migrations.
|
* Reverse the migrations.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user