![]() |
I have modules separate to the app namespace. I'm following the instructions about modules and trying to run a migration that lives under my own namespace, but spark migrate is completely ignoring it and I can't figure out why.
My file structure: app midair system I have the following code: app/Config/Autoload.php PHP Code: public $psr4 = [ midair/Article/Database/Migrations/2025-01-07-195230_CreateArticle.php PHP Code: namespace Midair\Article\Database\Migrations; And then when my server starts I'm executing Code: php spark migrate --all I've tested moving the migration into app/Database/Migrations (and adjusting the namespace) and it works fine, but for some reason it's refusing to see the migration when it lives under my own namespace. I also tried running php spark migrate -n Midair\\Article and that also didn't work. |
Messages In This Thread |
Can't get migration in module to be recognised by spark migrate --all - by BuckMulligan_ - 01-07-2025, 02:03 PM
RE: Can't get migration in module to be recognised by spark migrate --all - by InsiteFX - 01-07-2025, 10:51 PM
RE: Can't get migration in module to be recognised by spark migrate --all - by InsiteFX - 01-07-2025, 11:55 PM
RE: Can't get migration in module to be recognised by spark migrate --all - by BuckMulligan_ - 01-08-2025, 12:52 AM
RE: Can't get migration in module to be recognised by spark migrate --all - by BuckMulligan_ - 01-08-2025, 11:40 AM
RE: Can't get migration in module to be recognised by spark migrate --all - by InsiteFX - 01-08-2025, 11:36 PM
RE: Can't get migration in module to be recognised by spark migrate --all - by BuckMulligan_ - 01-09-2025, 12:21 AM
RE: Can't get migration in module to be recognised by spark migrate --all - by BuckMulligan_ - 01-09-2025, 12:32 PM
|