Skip to main content

forest schema:update

Refresh the schema of a legacy back-end (forest-express-sequelize or forest-express-mongoose) by generating the files that do not exist yet, such as the models of new tables. Existing files are not modified. Run it from the root of the back-end.

Usage

Options

The command reads DATABASE_SCHEMA from the environment when it is set.
Back-ends built on @forestadmin/agent introspect the database when they start and do not need this command.

Examples