Frederik Terstappen 13a3de6633
Update sea orm rocket (#2431)
* Update sea-orm-rocket dependencies

* Update rocket example dependencies

---------

Co-authored-by: Frederik Terstappen <freterstappen+gitlab@gmail.com>
2024-12-24 13:49:28 +00:00
..
2024-02-06 14:10:36 +08:00
2024-12-24 13:49:28 +00:00
2022-02-05 20:34:54 +08:00

Running Migrator CLI

  • Apply all pending migrations
    cargo run
    
    cargo run -- up
    
  • Apply first 10 pending migrations
    cargo run -- up -n 10
    
  • Rollback last applied migrations
    cargo run -- down
    
  • Rollback last 10 applied migrations
    cargo run -- down -n 10
    
  • Drop all tables from the database, then reapply all migrations
    cargo run -- fresh
    
  • Rollback all applied migrations, then reapply all migrations
    cargo run -- refresh
    
  • Rollback all applied migrations
    cargo run -- reset
    
  • Check the status of all migrations
    cargo run -- status