Anyway to refresh package db schema without reinstalling package?
Permalink
Hi,
Building a single page package that holds db.xml in the root package directory.
Anytime I make a change to the db.xml file I have to reinstall the plugin to refresh it.
When developing blocks you can refresh the block from the stacks area.
Is there a way to do that with non-block db files?
Building a single page package that holds db.xml in the root package directory.
Anytime I make a change to the db.xml file I have to reinstall the plugin to refresh it.
When developing blocks you can refresh the block from the stacks area.
Is there a way to do that with non-block db files?
In v5.6, while developing, I used to have a __construct() method in the controller to append the time to the version number. That doesn't work in 5.7 & v8 because the parent class is structured differently.
If you look at the docs for the c5 CLI, you can force a package update to run irrespective of versions.
If you look at the docs for the c5 CLI, you can force a package update to run irrespective of versions.
I found the cli documentation for this here:
https://documentation.concrete5.org/developers/appendix/cli-commands...
From concrete/bin I simply run
And the db.xml changes take effect.
https://documentation.concrete5.org/developers/appendix/cli-commands...
From concrete/bin I simply run
./concrete5 c5:package-update my_package_handle --force
And the db.xml changes take effect.
To be complete:
You can refresh blocks inside a package by going into the details of a package and click the block to get to the block detail page and click the refresh button. Or go straight to the block detail page via Dashboard -> Blocks $ Stacks -> Block Types