1. Home
  2. Docs
  3. Application Framework
  4. CLI Reference
  5. update-schema

update-schema

$ wp mwp update-schema <slug>

If you have made changes to your local database schema that is tracked in your plugin, then you can bring your plugin build-meta up to date with this command. Typically, this is needed after you have used the deploy-table CLI command to create/update a table for an ActiveRecord model. But it may also be needed if you have manually made updates to your local table schema for a table that is being tracked by your plugin.

@Params

<slug> (required) The slug (directory) of the plugin to update the schema for

@Example

$ wp mwp update-schema acmecompany-gizmo
Success: Plugin schema generated/updated.

Was this article helpful to you? Yes No

How can we help?