mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +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->setNamespace('CodeIgniter\Settings')
|
||||
->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')
|
||||
$migrate->setNamespace(null)
|
||||
->latest();
|
||||
|
||||
return redirect()->back()
|
||||
|
@ -246,23 +246,9 @@ class InstallController extends Controller
|
||||
*/
|
||||
public function migrate(): void
|
||||
{
|
||||
$migrations = Services::migrations();
|
||||
$migrate = Services::migrations();
|
||||
|
||||
$migrations->setNamespace('CodeIgniter\Settings')
|
||||
->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')
|
||||
$migrate->setNamespace(null)
|
||||
->latest();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user