#migration #cargo-run #daemon #signer #table #sea-orm #package #rollback #applied

bin+lib signer-daemon-migration

Signer daemon Sea-ORM migration package

4 releases

new 0.3.0 Jul 9, 2025
0.2.5 Jun 28, 2025
0.2.3 Jun 10, 2025
0.2.1 Jun 3, 2025

#375 in Cargo plugins

Download history 54/week @ 2025-05-28 118/week @ 2025-06-04 55/week @ 2025-06-11 2/week @ 2025-06-18 125/week @ 2025-06-25 12/week @ 2025-07-02

263 downloads per month
Used in signer-daemon

MIT license

17KB
346 lines

Running Migrator CLI

  • Generate a new migration file
    cargo run -- generate MIGRATION_NAME
    
  • 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
    

Dependencies

~56MB
~815K SLoC