mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-06 18:31:05 +00:00
refactor(migrations): set namespace to null to run all migrations during install and updates
This commit is contained in:
parent
b07ac093b2
commit
07780c5f6f
@ -44,21 +44,7 @@ class AboutController extends BaseController
|
|||||||
{
|
{
|
||||||
$migrate = Services::migrations();
|
$migrate = Services::migrations();
|
||||||
|
|
||||||
$migrate->setNamespace('CodeIgniter\Settings')
|
$migrate->setNamespace(null)
|
||||||
->latest();
|
|
||||||
$migrate->setNamespace('CodeIgniter\Shield')
|
|
||||||
->latest();
|
|
||||||
$migrate->setNamespace('Modules\Fediverse')
|
|
||||||
->latest();
|
|
||||||
$migrate->setNamespace(APP_NAMESPACE)
|
|
||||||
->latest();
|
|
||||||
$migrate->setNamespace('Modules\WebSub')
|
|
||||||
->latest();
|
|
||||||
$migrate->setNamespace('Modules\Auth')
|
|
||||||
->latest();
|
|
||||||
$migrate->setNamespace('Modules\PremiumPodcasts')
|
|
||||||
->latest();
|
|
||||||
$migrate->setNamespace('Modules\Analytics')
|
|
||||||
->latest();
|
->latest();
|
||||||
|
|
||||||
return redirect()->back()
|
return redirect()->back()
|
||||||
|
@ -246,23 +246,9 @@ class InstallController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function migrate(): void
|
public function migrate(): void
|
||||||
{
|
{
|
||||||
$migrations = Services::migrations();
|
$migrate = Services::migrations();
|
||||||
|
|
||||||
$migrations->setNamespace('CodeIgniter\Settings')
|
$migrate->setNamespace(null)
|
||||||
->latest();
|
|
||||||
$migrations->setNamespace('CodeIgniter\Shield')
|
|
||||||
->latest();
|
|
||||||
$migrations->setNamespace('Modules\Fediverse')
|
|
||||||
->latest();
|
|
||||||
$migrations->setNamespace(APP_NAMESPACE)
|
|
||||||
->latest();
|
|
||||||
$migrations->setNamespace('Modules\WebSub')
|
|
||||||
->latest();
|
|
||||||
$migrations->setNamespace('Modules\Auth')
|
|
||||||
->latest();
|
|
||||||
$migrations->setNamespace('Modules\PremiumPodcasts')
|
|
||||||
->latest();
|
|
||||||
$migrations->setNamespace('Modules\Analytics')
|
|
||||||
->latest();
|
->latest();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user