Migrations inside composer scripts |
I would like auto start migrations when "composer require ..." and "composer update". Not manual.
The composer allows to do this. For example: https://getcomposer.org/doc/articles/scr...hp-scripts But the command "spark migrate -all" can be called in the ROOTPATH. How can i call this from project root path? The another way (similar to spark migrate) is to call controller method like this: spark install index spark update index And this is the same question - how to call from root. The way is to create own spark file in the package root. And then we can call it something like this: Code: "scripts": { And how can we pass execution from our package spark to default /project-root-path/spark? |
Messages In This Thread |
Migrations inside composer scripts - by ARAmiss - 10-14-2021, 04:29 AM
RE: Migrations inside composer scripts - by includebeer - 10-16-2021, 02:09 PM
RE: Migrations inside composer scripts - by ARAmiss - 10-16-2021, 03:11 PM
RE: Migrations inside composer scripts - by ARAmiss - 10-17-2021, 12:39 AM
RE: Migrations inside composer scripts - by includebeer - 10-17-2021, 04:44 AM
RE: Migrations inside composer scripts - by ARAmiss - 10-17-2021, 06:50 AM
|