hecate-migration 0.1.0

Database migrations for the Hecate simulation code generator!
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 75.65 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 49.65 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 35s Average build duration of successful builds.
  • all releases: 1m 35s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ShaitanLyss/these
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ShaitanLyss

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