mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 18:44:36 -04:00
Fixes for site_url on gateways table
This commit is contained in:
parent
1a4d2a4460
commit
836e9a0ed4
@ -17,8 +17,11 @@ class UpdateGatewayTableVisibleColumn extends Migration
|
|||||||
Gateway::query()->update(['visible' => 0]);
|
Gateway::query()->update(['visible' => 0]);
|
||||||
|
|
||||||
Gateway::whereIn('id', [1,15,20,39])->update(['visible' => 1]);
|
Gateway::whereIn('id', [1,15,20,39])->update(['visible' => 1]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reverse the migrations.
|
* Reverse the migrations.
|
||||||
*
|
*
|
||||||
|
@ -81,5 +81,16 @@ class PaymentLibrariesSeeder extends Seeder
|
|||||||
Gateway::create($gateway);
|
Gateway::create($gateway);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Gateway::query()->update(['visible' => 0]);
|
||||||
|
|
||||||
|
Gateway::whereIn('id', [1,15,20,39])->update(['visible' => 1]);
|
||||||
|
|
||||||
|
Gateway::all()->each(function ($gateway){
|
||||||
|
|
||||||
|
$gateway->site_url = $gateway->getHelp();
|
||||||
|
$gateway->save();
|
||||||
|
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user