Skip to content
Snippets Groups Projects
Commit 07780c5f authored by Yassine Doghri's avatar Yassine Doghri
Browse files

refactor(migrations): set namespace to null to run all migrations during install and updates

parent b07ac093
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment