mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix migration
This commit is contained in:
parent
51f458b63b
commit
4e7cc56ed1
@ -71,7 +71,7 @@ class AddSubdomainToLookups extends Migration
|
|||||||
});
|
});
|
||||||
|
|
||||||
$accountPublicIds = [];
|
$accountPublicIds = [];
|
||||||
foreach (Subscription::all() as $subscription) {
|
foreach (Subscription::withTrashed()->orderBy('id')->get() as $subscription) {
|
||||||
$accountId = $subscription->account_id;
|
$accountId = $subscription->account_id;
|
||||||
if (isset($accountPublicIds[$accountId])) {
|
if (isset($accountPublicIds[$accountId])) {
|
||||||
$publicId = $accountPublicIds[$accountId];
|
$publicId = $accountPublicIds[$accountId];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user