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?

ob7dev
 
c5dragon replied on at Permalink Reply
c5dragon
What I do is changing the version number by 0.0.0.1 up to trigger upgrade/update in the extension manager.

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
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
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.
ob7dev replied on at Permalink Reply
ob7dev
I found the cli documentation for this here:
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.