warpgate/warpgate-db-migrations
Cléo REBERT 86daf9f38e
Fix build after cargo update
* Fix project not building after `cargo update`

* Bump totp-rs from 3.x to 5.x

* Bump sea-orm to 0.10 to 0.11

* Remove `chrono` unused features to get rid of warning during `cargo audit`
2023-04-19 10:59:19 +02:00
..
src fixed #456 - postgres field type mismatch 2022-11-08 11:48:24 +01:00
Cargo.toml Fix build after cargo update 2023-04-19 10:59:19 +02:00
README.md import 2022-04-10 22:58:58 +02: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