docs(adonis): add migration commands

This commit is contained in:
Julien Le Coupanec
2020-04-10 18:00:31 +02:00
parent 577f507189
commit 0b29b9bb54

View File

@@ -8,28 +8,39 @@
* AVAILABLE CLI COMMANDS * AVAILABLE CLI COMMANDS
********************************************************************************************/ ********************************************************************************************/
build // Compile typescript code to Javascript. Optionally watch for file changes build // Compile typescript code to Javascript. Optionally watch for file changes
invoke // Invoke post install instructions on a given AdonisJs package invoke // Invoke post install instructions on a given AdonisJs package
serve // Compile typescript code to Javascript and start the HTTP server serve // Compile typescript code to Javascript and start the HTTP server
// Dump // Dump
dump:rcfile // Dump contents of .adonisrc.json file along with defaults dump:rcfile // Dump contents of .adonisrc.json file along with defaults
// Generate // Generate
generate:key // Generate a new APP_KEY secret generate:key // Generate a new APP_KEY secret
generate:manifest // Generate manifest file to execute ace commands generate:manifest // Generate manifest file to execute ace commands
// List // List
list:routes // List application routes list:routes // List application routes
// Make // Make
make:command // Make a new ace command make:command // Make a new ace command
make:controller // Make a new HTTP controller make:controller // Make a new HTTP controller
make:middleware // Make a new middleware make:middleware // Make a new middleware
make:provider // Make a new IoC container provider make:migration // Make a new migration
make:validator // Make a new validator make:provider // Make a new IoC container provider
make:view // Make a new view template make:validator // Make a new validator
make:view // Make a new view template
// Migrations
make:migration // Create a new migration file.
migration:run // Run all pending migrations.
migration:rollback // Rollback last set of migrations.
migration:refresh // Rollback all migrations to the 0 batch then re-run them from the start.
migration:reset // Rollback all migrations to the 0 batch.
migration:status // Get the status of all the migrations.