Bundled with Emoncms is a simple CLI tool that right now can be used to update the configured database to ensure the schema is up to date.
This tool resides in the scripts/
directory. However it must be executed from the root of the project.
Running the CLI without any arguments will print all available commands that can be executed.
./scripts/emoncms-cli
Running this command will run any pending migrations that need to be run. Typically this is done after upgrades that have changes to the database schema.
./scripts/emoncms-cli admin:dbupdate