mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 02:36:42 +02:00
refactor(migrations): set namespace to null to run all migrations during install and updates
This commit is contained in:
parent
b07ac093b2
commit
07780c5f6f
2 changed files with 3 additions and 31 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue